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) {
|
}).map(function (record) {
|
||||||
var split = record.zone.split('.');
|
var split = record.zone.split('.');
|
||||||
return {
|
return {
|
||||||
tld: split.slice(1).join('.'),
|
tld: split.slice(1).join('.')
|
||||||
sld: split[0],
|
, sld: split[0]
|
||||||
sub: record.host.slice(0, -(record.zone.length + 1))
|
, sub: record.host.slice(0, -(record.zone.length + 1))
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}).then(function (domains) {
|
}).then(function (domains) {
|
||||||
var common = {
|
var common = {
|
||||||
api: 'devices.detach',
|
api: 'devices.detach'
|
||||||
session: session,
|
, session: session
|
||||||
device: conf.device.hostname
|
, device: conf.device.hostname
|
||||||
};
|
};
|
||||||
|
|
||||||
return PromiseA.all(domains.map(function (record) {
|
return PromiseA.all(domains.map(function (record) {
|
||||||
|
@ -72,11 +72,11 @@ module.exports.create = function (deps, conf) {
|
||||||
});
|
});
|
||||||
}).then(function (domains) {
|
}).then(function (domains) {
|
||||||
var common = {
|
var common = {
|
||||||
api: 'devices.attach',
|
api: 'devices.attach'
|
||||||
session: session,
|
, session: session
|
||||||
device: conf.device.hostname,
|
, device: conf.device.hostname
|
||||||
ip: addr,
|
, ip: addr
|
||||||
ttl: 300
|
, ttl: 300
|
||||||
};
|
};
|
||||||
|
|
||||||
return PromiseA.all(domains.map(function (record) {
|
return PromiseA.all(domains.map(function (record) {
|
||||||
|
|
Loading…
Reference in New Issue