@elizaos/plugin-sql 1.5.12 → 1.5.13-alpha.2

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.
@@ -548,7 +548,7 @@ class BaseDrizzleAdapter extends DatabaseAdapter {
548
548
  });
549
549
  }
550
550
  async getAgents() {
551
- return this.withDatabase(async () => {
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
- return this.withDatabase(async () => {
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=7260C857A47E561664756E2164756E21
3253
+ //# debugId=6FC3A45AD99266E264756E2164756E21
3252
3254
  //# sourceMappingURL=index.browser.js.map