Skip to content

fix: db queries in sqljs database adapter not using agentId#606

Merged
shakkernerd merged 1 commit into
elizaOS:mainfrom
bmgalego:fix-sqljs
Nov 26, 2024
Merged

fix: db queries in sqljs database adapter not using agentId#606
shakkernerd merged 1 commit into
elizaOS:mainfrom
bmgalego:fix-sqljs

Conversation

@bmgalego
Copy link
Copy Markdown
Contributor

Relates to:

#539

Risks

Background

What does this PR do?

What kind of change is this?

Documentation changes needed?

Testing

Where should a reviewer start?

Detailed testing steps

@bmgalego bmgalego changed the title fix: dq queries in sqljs database adapter not using agentId fix: db queries in sqljs database adapter not using agentId Nov 26, 2024
}): Promise<Memory[]> {
const placeholders = params.roomIds.map(() => "?").join(", ");
let sql = `SELECT * FROM memories WHERE type = ? AND roomId IN (${placeholders})`;
let sql = `SELECT * FROM memories WHERE 'type' = ? AND agentId = ? AND roomId IN (${placeholders})`;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nice catch!

@shakkernerd shakkernerd merged commit 036fefa into elizaOS:main Nov 26, 2024
lalalune pushed a commit that referenced this pull request May 3, 2026
fix: db queries in sqljs database adapter not using agentId
FranceFlapjack pushed a commit to FranceFlapjack/eliza that referenced this pull request May 16, 2026
fix: db queries in sqljs database adapter not using agentId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants