Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix linting and syntax errors in core swarm components #3761

Merged
merged 6 commits into from
Mar 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/core/src/actions/roles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ const updateRoleAction: Action = {
(world.metadata.roles[requesterId] as RoleName) || RoleName.NONE;

// Get all entities in the room
const entities = await runtime.databaseAdapter.getEntitiesForRoom(room.id, runtime.agentId, true);
const entities = await runtime.databaseAdapter.getEntitiesForRoom(room.id, true);

// Build server members context from entities
const serverMembersContext = entities
Expand Down Expand Up @@ -385,7 +385,7 @@ const updateRoleAction: Action = {

// Save updated world metadata if any changes were made
if (worldUpdated) {
await runtime.updateWorld(world);
await runtime.databaseAdapter.updateWorld(world);
logger.info(`Updated roles in world metadata for server ${serverId}`);
}
},
Expand Down
Loading