fix: database health cron

This commit is contained in:
Charles GTE
2026-03-28 15:10:46 +01:00
parent 7aecd911c0
commit 0262a1c176
16 changed files with 5270 additions and 117 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ export async function handleDatabases(body: Body, agent: Agent, lastContact: Dat
.set(withUpdatedAt({
name: db.name,
agentId: agent.id,
lastContact: db.pingStatus ? lastContact : null,
lastContact: db.pingStatus ? lastContact : existingDatabase.lastContact,
}))
.where(eq(drizzleDb.schemas.database.id, existingDatabase.id))
.returning();