mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-24 08:32:23 +02:00
Removed useless database query
This commit is contained in:
parent
303adbf9b1
commit
858affa808
@ -208,11 +208,7 @@ class Monitor extends BeanModel {
|
||||
dnsMessage = dnsMessage.slice(0, -2)
|
||||
}
|
||||
|
||||
let dnsLastResult = await R.findOne("monitor", "id = ?", [
|
||||
this.id,
|
||||
]);
|
||||
|
||||
if (dnsLastResult.dnsLastResult !== dnsMessage) {
|
||||
if (this.dnsLastResult !== dnsMessage) {
|
||||
R.exec("UPDATE `monitor` SET dns_last_result = ? WHERE id = ? ", [
|
||||
dnsMessage,
|
||||
this.id
|
||||
|
Loading…
Reference in New Issue
Block a user