From a0374487ce2740d9381d87112f4ab4c1f1e3cb73 Mon Sep 17 00:00:00 2001 From: Matt Visnovsky Date: Fri, 14 Jun 2024 16:44:36 -0600 Subject: [PATCH] C&P typo from review --- server/monitor-types/snmp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/monitor-types/snmp.js b/server/monitor-types/snmp.js index c176e55f1..a1760fa3d 100644 --- a/server/monitor-types/snmp.js +++ b/server/monitor-types/snmp.js @@ -46,9 +46,9 @@ class SNMPMonitorType extends MonitorType { if (status) { heartbeat.status = UP; - heartbeat.msg = `JSON query passes (comparing ${response} ${this.jsonPathOperator} ${this.expectedValue})`; + heartbeat.msg = `JSON query passes (comparing ${response} ${monitor.jsonPathOperator} ${monitor.expectedValue})`; } else { - throw new Error(`JSON query does not pass (comparing ${response} ${this.jsonPathOperator} ${this.expectedValue})`); + throw new Error(`JSON query does not pass (comparing ${response} ${monitor.jsonPathOperator} ${monitor.expectedValue})`); } } finally { if (session) {