Files
talk/plugins/talk-plugin-global-switchoff/server/hooks.js
T

14 lines
288 B
JavaScript

module.exports = {
RootMutation: {
updateSettings: {
async pre(_, { input }) {
input.metadata = {
...input.metadata,
globalSwitchoffEnable: input.globalSwitchoffEnable,
};
delete input.globalSwitchoffEnable;
},
},
},
};