From afa26795011c7cfddcb565b1cc47c786f5f6e1ea Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Mon, 10 Feb 2020 14:40:55 +0000 Subject: [PATCH] fix(core): update --- ts/cloudflare.classes.account.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ts/cloudflare.classes.account.ts b/ts/cloudflare.classes.account.ts index 58f50c7..8e624ed 100644 --- a/ts/cloudflare.classes.account.ts +++ b/ts/cloudflare.classes.account.ts @@ -115,13 +115,16 @@ export class CloudflareAccount { /** * cleanrecord allows the cleaning of any previous records to avoid unwanted sideeffects */ + cleanRecord: async (domainNameArg: string, typeArg: plugins.tsclass.network.TDnsRecord) => { + + }, /** * updates a record * @param domainNameArg * @param typeArg * @param valueArg */ - updateRecord: async (domainNameArg: string, typeArg: string, valueArg) => { + updateRecord: async (domainNameArg: string, typeArg: plugins.tsclass.network.TDnsRecord, valueArg) => { // TODO: implement const domain = new plugins.smartstring.Domain(domainNameArg); }, @@ -170,7 +173,7 @@ export class CloudflareAccount { }, // acme convenience functions acmeSetDnsChallenge: async (dnsChallenge: plugins.tsclass.network.IDnsChallenge) => { - // await this.convenience.removeRecord(dnsChallenge.hostName, 'TXT'); + await this.convenience.cleanRecord(dnsChallenge.hostName, 'TXT'); await this.convenience.createRecord(dnsChallenge.hostName, 'TXT', dnsChallenge.challenge); }, acmeRemoveDnsChallenge: async (dnsChallenge: plugins.tsclass.network.IDnsChallenge) => {