mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
Fix: use the correct keys to get the settings
This commit is contained in:
@@ -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', ''),
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user