Update server/monitor-types/mongodb.js
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
parent
a2f21ecb7d
commit
201ee920d1
@ -12,7 +12,6 @@ class MongodbMonitorType extends MonitorType {
|
|||||||
async check(monitor, heartbeat, _server) {
|
async check(monitor, heartbeat, _server) {
|
||||||
let command = { ping: 1 };
|
let command = { ping: 1 };
|
||||||
if (monitor.databaseQuery) {
|
if (monitor.databaseQuery) {
|
||||||
// databaseQuery is validated in Monitor.validate(), so we can safely parse it here
|
|
||||||
command = JSON.parse(monitor.databaseQuery);
|
command = JSON.parse(monitor.databaseQuery);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user