Fix: use the correct keys to get the settings

This commit is contained in:
Fabian Neumann
2018-05-11 11:19:09 +02:00
parent 499030028c
commit fab15daacd
@@ -3,8 +3,8 @@ const { get } = require('lodash');
module.exports = {
Settings: {
globalSwitchoffEnable: settings =>
get(settings, 'globalSwitchoffEnable', false),
get(settings, 'metadata.globalSwitchoffEnable', false),
globalSwitchoffMessage: settings =>
get(settings, 'globalSwitchoffMessage', ''),
get(settings, 'metadata.globalSwitchoffMessage', ''),
},
};