diff --git a/lib/ddns.js b/lib/ddns.js index ee77970..a2bf08b 100644 --- a/lib/ddns.js +++ b/lib/ddns.js @@ -52,17 +52,17 @@ module.exports.create = function (deps, conf) { }).map(function (record) { var split = record.zone.split('.'); return { - tld: split.slice(1).join('.'), - sld: split[0], - sub: record.host.slice(0, -(record.zone.length + 1)) + tld: split.slice(1).join('.') + , sld: split[0] + , sub: record.host.slice(0, -(record.zone.length + 1)) }; }); }); }).then(function (domains) { var common = { - api: 'devices.detach', - session: session, - device: conf.device.hostname + api: 'devices.detach' + , session: session + , device: conf.device.hostname }; return PromiseA.all(domains.map(function (record) { @@ -72,11 +72,11 @@ module.exports.create = function (deps, conf) { }); }).then(function (domains) { var common = { - api: 'devices.attach', - session: session, - device: conf.device.hostname, - ip: addr, - ttl: 300 + api: 'devices.attach' + , session: session + , device: conf.device.hostname + , ip: addr + , ttl: 300 }; return PromiseA.all(domains.map(function (record) {