mirror of
https://github.com/cupcakearmy/docker-ddns-cloudflare.git
synced 2024-11-17 02:29:56 +01:00
select also for a type
This commit is contained in:
parent
5a40bf5503
commit
7281f16585
@ -42,7 +42,7 @@ async function update(newIP) {
|
||||
if (!zones.length) throw new Error(`No ZONE "${ZONE}" found`)
|
||||
|
||||
const zoneId = zones[0].id
|
||||
const { result: records } = await cf.dnsRecords.browse(zoneId, { name: DNS_RECORD })
|
||||
const { result: records } = await cf.dnsRecords.browse(zoneId, { name: DNS_RECORD, type: 'A' })
|
||||
|
||||
const recordAlreadyExists = records.length
|
||||
if (recordAlreadyExists) {
|
||||
|
Loading…
Reference in New Issue
Block a user