mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-19 23:44:04 +02:00
feat(txtCondition): lint fix
This commit is contained in:
parent
b52e190677
commit
4037820dc8
1 changed files with 2 additions and 4 deletions
|
@ -38,12 +38,10 @@ class DnsMonitorType extends MonitorType {
|
||||||
dnsMessage = `Records: ${dnsRes.join(" | ")}`;
|
dnsMessage = `Records: ${dnsRes.join(" | ")}`;
|
||||||
conditionsResult = dnsRes.some(record => handleConditions({ record }));
|
conditionsResult = dnsRes.some(record => handleConditions({ record }));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "TXT":
|
case "TXT":
|
||||||
dnsMessage = `Records: ${dnsRes.join(" | ")}`;
|
dnsMessage = `Records: ${dnsRes.join(" | ")}`;
|
||||||
// Node.js resolveTxt brings an array of array
|
conditionsResult = dnsRes.flat().some(record => handleConditions({ record }));
|
||||||
let txtRecords = dnsRes.flat();
|
|
||||||
conditionsResult = txtRecords.some(record => handleConditions({ record }));
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "CNAME":
|
case "CNAME":
|
||||||
|
|
Loading…
Add table
Reference in a new issue