get rid of all the NOOP_CALLBACKs
This commit is contained in:
@@ -161,8 +161,6 @@ const appstore = require('./appstore.js'),
|
||||
validator = require('validator'),
|
||||
_ = require('underscore');
|
||||
|
||||
const NOOP_CALLBACK = function (error) { if (error) debug(error); };
|
||||
|
||||
const APPS_FIELDS_PREFIXED = [ 'apps.id', 'apps.appStoreId', 'apps.installationState', 'apps.errorJson', 'apps.runState',
|
||||
'apps.health', 'apps.containerId', 'apps.manifestJson', 'apps.accessRestrictionJson', 'apps.memoryLimit', 'apps.cpuShares',
|
||||
'apps.label', 'apps.tagsJson', 'apps.taskId', 'apps.reverseProxyConfigJson', 'apps.servicesConfigJson',
|
||||
@@ -1499,8 +1497,8 @@ async function setDataDir(app, dataDir, auditSource) {
|
||||
const task = {
|
||||
args: { newDataDir: dataDir },
|
||||
values: { },
|
||||
onFinished: (error) => {
|
||||
if (!error) services.rebuildService('sftp', NOOP_CALLBACK);
|
||||
onFinished: async (error) => {
|
||||
if (!error) await safe(services.rebuildService('sftp'), { debug });
|
||||
}
|
||||
};
|
||||
const taskId = await addTask(appId, exports.ISTATE_PENDING_DATA_DIR_MIGRATION, task);
|
||||
|
||||
Reference in New Issue
Block a user