Working on implementation of alert policies. Some refactoring in user profile and patching a bug in status endpoint api.

This commit is contained in:
charlesgauthereau
2025-11-28 23:10:37 +01:00
parent d968aa9c16
commit 934e635cdb
29 changed files with 3364 additions and 1551 deletions
+4 -2
View File
@@ -64,10 +64,12 @@ export async function handleDatabases(body: Body, agent: Agent, lastContact: Dat
}
} else {
const [databaseUpdated] = await dbClient
.update(drizzleDb.schemas.database)
.set({lastContact: lastContact})
.set({
agentId: agent.id,
lastContact: lastContact
})
.where(eq(drizzleDb.schemas.database.id, existingDatabase.id))
.returning();