mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
fix: database health cron
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user