fix: mariadb and mysql separation (#234)

This commit is contained in:
Charles GTE
2026-03-29 09:24:31 +02:00
committed by GitHub
parent 2e729cb79c
commit aff782aa28
8 changed files with 2664 additions and 94 deletions
@@ -97,6 +97,7 @@ export async function handleDatabases(body: Body, agent: Agent, lastContact: Dat
.set(withUpdatedAt({
name: db.name,
agentId: agent.id,
dbms: db.dbms as EDbmsSchema,
lastContact: db.pingStatus ? lastContact : existingDatabase.lastContact,
healthErrorCount: db.pingStatus ? null : existingDatabase.healthErrorCount,
}))