Update server/monitor-types/mongodb.js

Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
Angel98518 2026-01-20 07:05:41 -08:00 committed by GitHub
parent a2f21ecb7d
commit 201ee920d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,6 @@ class MongodbMonitorType extends MonitorType {
async check(monitor, heartbeat, _server) {
let command = { ping: 1 };
if (monitor.databaseQuery) {
// databaseQuery is validated in Monitor.validate(), so we can safely parse it here
command = JSON.parse(monitor.databaseQuery);
}