dashboard-core/theme/dbd-soft-ui/pages/get/settings.js
Jonny_Bro (Nikita) 849a93887a
2023-06-22 19:36:52 +05:00

11 lines
No EOL
397 B
JavaScript

module.exports = {
page: "/settings/:id/:category",
// eslint-disable-next-line no-unused-vars
execute: async (req, res, app, config, themeConfig, info) => {
const categoryExists = config.settings?.find(s => s.categoryId === req.params.category);
if (!categoryExists) return config.errorPage(req, res, null, 404);
await config.guildSettings(req, res, false, req.params.category);
},
};