Update server/monitor-types/mysql.js

Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
Pegasus 2026-01-06 01:30:04 -05:00 committed by leonace924
parent e6481fa8aa
commit 0188769636

View File

@ -45,7 +45,8 @@ class MysqlMonitorType extends MonitorType {
throw new Error(`Query result did not meet the specified conditions (${result})`); throw new Error(`Query result did not meet the specified conditions (${result})`);
} }
heartbeat.msg = ""; heartbeat.status = UP;
heartbeat.msg = "query did meet specified conditions";
} else { } else {
// Backwards compatible: just check connection and return row count // Backwards compatible: just check connection and return row count
const result = await this.mysqlQuery(monitor.databaseConnectionString, query, password); const result = await this.mysqlQuery(monitor.databaseConnectionString, query, password);