From 8535a4c73a97db5490671db3ad6934a7843695fc Mon Sep 17 00:00:00 2001 From: Max Wilets Date: Tue, 23 Jul 2019 21:58:15 -0600 Subject: [PATCH] error --- lib/index.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/index.js b/lib/index.js index 23e3256..7641179 100644 --- a/lib/index.js +++ b/lib/index.js @@ -51,7 +51,7 @@ module.exports.create = function(config) { additions: [ { kind: "dns#resourceRecordSet", - name: ch.dnsHost, + name: ch.dnsHost + ".", type: "TXT", ttl: 300, // TODO test for lowest allowed value rrdatas: [ch.dnsAuthorization], @@ -65,14 +65,16 @@ module.exports.create = function(config) { //"isServing": true } }); - }) + + }) .then(function(resp) { if (resp.body.error) { console.error(resp.headers); console.error(resp.body); throw new Error(resp.body.error); - } - }); + } + return null + }); }, remove: function(data) { // console.info('Remove TXT', data);