diff --git a/test/test.ts b/test/test.ts index 761f07d..53a77c9 100644 --- a/test/test.ts +++ b/test/test.ts @@ -43,7 +43,8 @@ tap.test('should create a valid record for a subdomain', async (tools) => { await testCloudflareAccount.convenience.createRecord( `${randomPrefix}subdomain.bleu.de`, 'A', - '127.0.0.1' + '127.0.0.1', + 120 ); }); diff --git a/ts/cloudflare.classes.account.ts b/ts/cloudflare.classes.account.ts index eb6a40f..a81aaaa 100644 --- a/ts/cloudflare.classes.account.ts +++ b/ts/cloudflare.classes.account.ts @@ -175,7 +175,7 @@ export class CloudflareAccount { // acme convenience functions acmeSetDnsChallenge: async (dnsChallenge: plugins.tsclass.network.IDnsChallenge) => { await this.convenience.cleanRecord(dnsChallenge.hostName, 'TXT'); - await this.convenience.createRecord(dnsChallenge.hostName, 'TXT', dnsChallenge.challenge, 2); + await this.convenience.createRecord(dnsChallenge.hostName, 'TXT', dnsChallenge.challenge, 120); }, acmeRemoveDnsChallenge: async (dnsChallenge: plugins.tsclass.network.IDnsChallenge) => { await this.convenience.removeRecord(dnsChallenge.hostName, 'TXT');