made comma style more consistently broken
This commit is contained in:
parent
fcb2de516f
commit
68d6322b42
22
lib/ddns.js
22
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) {
|
||||
|
|
Loading…
Reference in New Issue