@elizaos/plugin-sql 1.5.12-alpha.1 → 1.5.12
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/dist/browser/index.browser.js +3 -5
- package/dist/browser/index.browser.js.map +3 -3
- package/dist/browser/tsconfig.build.tsbuildinfo +1 -1
- package/dist/node/index.node.js +4 -6
- package/dist/node/index.node.js.map +4 -4
- package/dist/node/tsconfig.build.node.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -548,7 +548,7 @@ class BaseDrizzleAdapter extends DatabaseAdapter {
|
|
|
548
548
|
});
|
|
549
549
|
}
|
|
550
550
|
async getAgents() {
|
|
551
|
-
|
|
551
|
+
return this.withDatabase(async () => {
|
|
552
552
|
const rows = await this.db.select({
|
|
553
553
|
id: agentTable.id,
|
|
554
554
|
name: agentTable.name,
|
|
@@ -560,7 +560,6 @@ class BaseDrizzleAdapter extends DatabaseAdapter {
|
|
|
560
560
|
bio: row.bio === null ? "" : row.bio
|
|
561
561
|
}));
|
|
562
562
|
});
|
|
563
|
-
return result || [];
|
|
564
563
|
}
|
|
565
564
|
async createAgent(agent) {
|
|
566
565
|
return this.withDatabase(async () => {
|
|
@@ -1941,7 +1940,7 @@ class BaseDrizzleAdapter extends DatabaseAdapter {
|
|
|
1941
1940
|
});
|
|
1942
1941
|
}
|
|
1943
1942
|
async getMessageServers() {
|
|
1944
|
-
|
|
1943
|
+
return this.withDatabase(async () => {
|
|
1945
1944
|
const results = await this.db.select().from(messageServerTable);
|
|
1946
1945
|
return results.map((r) => ({
|
|
1947
1946
|
id: r.id,
|
|
@@ -1953,7 +1952,6 @@ class BaseDrizzleAdapter extends DatabaseAdapter {
|
|
|
1953
1952
|
updatedAt: r.updatedAt
|
|
1954
1953
|
}));
|
|
1955
1954
|
});
|
|
1956
|
-
return result || [];
|
|
1957
1955
|
}
|
|
1958
1956
|
async getMessageServerById(serverId) {
|
|
1959
1957
|
return this.withDatabase(async () => {
|
|
@@ -3250,5 +3248,5 @@ export {
|
|
|
3250
3248
|
DatabaseMigrationService
|
|
3251
3249
|
};
|
|
3252
3250
|
|
|
3253
|
-
//# debugId=
|
|
3251
|
+
//# debugId=7260C857A47E561664756E2164756E21
|
|
3254
3252
|
//# sourceMappingURL=index.browser.js.map
|