From 6d8deca9d40727ba8bdb396c43d53a6b1b0f4071 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Fri, 22 Jan 2021 21:12:42 +0000 Subject: [PATCH] fix(core): update --- test/test.ts | 3 ++- ts/cloudflare.classes.account.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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');