|
|
@ -208,11 +208,7 @@ class Monitor extends BeanModel {
|
|
|
|
dnsMessage = dnsMessage.slice(0, -2)
|
|
|
|
dnsMessage = dnsMessage.slice(0, -2)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let dnsLastResult = await R.findOne("monitor", "id = ?", [
|
|
|
|
if (this.dnsLastResult !== dnsMessage) {
|
|
|
|
this.id,
|
|
|
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (dnsLastResult.dnsLastResult !== dnsMessage) {
|
|
|
|
|
|
|
|
R.exec("UPDATE `monitor` SET dns_last_result = ? WHERE id = ? ", [
|
|
|
|
R.exec("UPDATE `monitor` SET dns_last_result = ? WHERE id = ? ", [
|
|
|
|
dnsMessage,
|
|
|
|
dnsMessage,
|
|
|
|
this.id
|
|
|
|
this.id
|
|
|
|