@elizaos/plugin-sql 1.5.12-alpha.2 → 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.
@@ -548,7 +548,7 @@ class BaseDrizzleAdapter extends DatabaseAdapter {
548
548
  });
549
549
  }
550
550
  async getAgents() {
551
- const result = await this.withDatabase(async () => {
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
- const result = await this.withDatabase(async () => {
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=6FC3A45AD99266E264756E2164756E21
3251
+ //# debugId=7260C857A47E561664756E2164756E21
3254
3252
  //# sourceMappingURL=index.browser.js.map