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

@@ -269,7 +269,7 @@ function startMail(callback) {
// Add MX record
var mxRecord = { subdomain: '', type: 'MX', values: [ '10 ' + config.mailFqdn() + '.' ] };
subdomains.update(mxRecord.subdomain, mxRecord.type, mxRecord.values, callback);
subdomains.upsert(mxRecord.subdomain, mxRecord.type, mxRecord.values, callback);
});
});
});