rename subdomains.update to subdomains.upsert

This commit is contained in:
Girish Ramakrishnan
2016-09-05 16:41:04 -07:00
parent 4fc6eb1876
commit ecc9d1bc02
6 changed files with 12 additions and 24 deletions

View File

@@ -453,7 +453,7 @@ function addDnsRecords() {
debug('addDnsRecords: will update %j', records);
async.mapSeries(records, function (record, iteratorCallback) {
subdomains.update(record.subdomain, record.type, record.values, iteratorCallback);
subdomains.upsert(record.subdomain, record.type, record.values, iteratorCallback);
}, function (error, changeIds) {
if (error) debug('addDnsRecords: failed to update : %s. will retry', error);
else debug('addDnsRecords: records %j added with changeIds %j', records, changeIds);