@mastra/dsql 1.3.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1453,7 +1453,7 @@ var AgentsDSQL = class AgentsDSQL extends AgentsStorage {
|
|
|
1453
1453
|
setClauses.push(`"updatedAtZ" = $${paramIndex++}`);
|
|
1454
1454
|
values.push(now);
|
|
1455
1455
|
values.push(id);
|
|
1456
|
-
await withRetry(() => this.#db.client.none(`UPDATE ${tableName} SET ${setClauses.join(", ")} WHERE id =
|
|
1456
|
+
await withRetry(() => this.#db.client.none(`UPDATE ${tableName} SET ${setClauses.join(", ")} WHERE id = $${paramIndex}`, values));
|
|
1457
1457
|
const updatedAgent = await this.getById(id);
|
|
1458
1458
|
if (!updatedAgent) throw new MastraError({
|
|
1459
1459
|
id: createStorageErrorId("DSQL", "UPDATE_AGENT", "NOT_FOUND_AFTER_UPDATE"),
|