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