Remove unused dns config change event

This commit is contained in:
Johannes Zellner
2017-10-29 01:28:18 +02:00
parent eb65f9e758
commit fb9372d93e
-3
View File
@@ -61,7 +61,6 @@ exports = module.exports = {
EMAIL_DIGEST: 'email_digest',
// json. if you add an entry here, be sure to fix getAll
DNS_CONFIG_KEY: 'dns_config',
BACKUP_CONFIG_KEY: 'backup_config',
TLS_CONFIG_KEY: 'tls_config',
UPDATE_CONFIG_KEY: 'update_config',
@@ -323,8 +322,6 @@ function setDnsConfig(dnsConfig, domain, zoneName, callback) {
if (error && error.reason === SubdomainError.INVALID_PROVIDER) return callback(new SettingsError(SettingsError.BAD_FIELD, error.message));
if (error) return callback(new SettingsError(SettingsError.INTERNAL_ERROR, error));
exports.events.emit(exports.DNS_CONFIG_KEY, dnsConfig);
cloudron.configureWebadmin(NOOP_CALLBACK); // do not block
callback(null, dnsConfig);