Another check for redis services configs

This commit is contained in:
Johannes Zellner
2020-10-27 14:33:33 +01:00
parent d337fc6d47
commit d6c3c8a294

View File

@@ -1903,7 +1903,7 @@ function clearRedis(app, options, callback) {
assert.strictEqual(typeof options, 'object');
assert.strictEqual(typeof callback, 'function');
if (app.servicesConfig['redis'].disabled) return callback(null);
if (app.servicesConfig['redis'] && app.servicesConfig['redis'].disabled) return callback(null);
debugApp(app, 'Clearing redis');
@@ -1959,7 +1959,7 @@ function restoreRedis(app, options, callback) {
assert.strictEqual(typeof options, 'object');
assert.strictEqual(typeof callback, 'function');
if (app.servicesConfig['redis'].disabled) return callback(null);
if (app.servicesConfig['redis'] && app.servicesConfig['redis'].disabled) return callback(null);
debugApp(app, 'Restoring redis');