@elizaos/plugin-sql 1.5.10 → 1.5.11-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.
@@ -5656,7 +5656,7 @@ class BaseDrizzleAdapter extends DatabaseAdapter {
5656
5656
  });
5657
5657
  }
5658
5658
  async getAgents() {
5659
- return this.withDatabase(async () => {
5659
+ const result = await this.withDatabase(async () => {
5660
5660
  const rows = await this.db.select({
5661
5661
  id: agentTable.id,
5662
5662
  name: agentTable.name,
@@ -5668,6 +5668,7 @@ class BaseDrizzleAdapter extends DatabaseAdapter {
5668
5668
  bio: row.bio === null ? "" : row.bio
5669
5669
  }));
5670
5670
  });
5671
+ return result || [];
5671
5672
  }
5672
5673
  async createAgent(agent) {
5673
5674
  return this.withDatabase(async () => {
@@ -7048,7 +7049,7 @@ class BaseDrizzleAdapter extends DatabaseAdapter {
7048
7049
  });
7049
7050
  }
7050
7051
  async getMessageServers() {
7051
- return this.withDatabase(async () => {
7052
+ const result = await this.withDatabase(async () => {
7052
7053
  const results = await this.db.select().from(messageServerTable);
7053
7054
  return results.map((r) => ({
7054
7055
  id: r.id,
@@ -7060,6 +7061,7 @@ class BaseDrizzleAdapter extends DatabaseAdapter {
7060
7061
  updatedAt: r.updatedAt
7061
7062
  }));
7062
7063
  });
7064
+ return result || [];
7063
7065
  }
7064
7066
  async getMessageServerById(serverId) {
7065
7067
  return this.withDatabase(async () => {
@@ -8859,5 +8861,5 @@ export {
8859
8861
  DatabaseMigrationService
8860
8862
  };
8861
8863
 
8862
- //# debugId=E319B4C8342ABF1964756E2164756E21
8864
+ //# debugId=9E729D7330B734AF64756E2164756E21
8863
8865
  //# sourceMappingURL=index.node.js.map