Skip to content

Commit ae97d6e

Browse files
committedNov 23, 2024
fix query error in postgres getMemories
1 parent 9a1f14c commit ae97d6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/adapter-postgres/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ export class PostgresDatabaseAdapter
343343
}): Promise<Memory[]> {
344344
if (!params.tableName) throw new Error("tableName is required");
345345
if (!params.roomId) throw new Error("roomId is required");
346-
let sql = `SELECT * FROM memories WHERE type = $1 AND agentId = $2 AND "roomId" = $3`;
346+
let sql = `SELECT * FROM memories WHERE type = $1 AND "agentId" = $2 AND "roomId" = $3`;
347347
const values: any[] = [params.tableName, params.agentId, params.roomId];
348348
let paramCount = 2;
349349

0 commit comments

Comments
 (0)