Skip to content

Commit

Permalink
Merge pull request #3761 from elizaOS/algo/swarm-working
Browse files Browse the repository at this point in the history
fix linting and syntax errors in core swarm components
  • Loading branch information
lalalune authored Mar 4, 2025
2 parents 996373d + e015ecf commit ac0ca31
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit ac0ca31

Please sign in to comment.