diff --git a/app/api/agent/[agentId]/status/helpers.ts b/app/api/agent/[agentId]/status/helpers.ts index 25adc600..394b36ce 100644 --- a/app/api/agent/[agentId]/status/helpers.ts +++ b/app/api/agent/[agentId]/status/helpers.ts @@ -66,10 +66,11 @@ export async function handleDatabases(body: Body, agent: Agent, lastContact: Dat const [databaseUpdated] = await dbClient .update(drizzleDb.schemas.database) - .set({ + .set(withUpdatedAt({ + name: db.name, agentId: agent.id, lastContact: lastContact - }) + })) .where(eq(drizzleDb.schemas.database.id, existingDatabase.id)) .returning();