Skip to content

Commit

Permalink
added console.log in flags.list inside mods.js to get terminal output…
Browse files Browse the repository at this point in the history
… when code is triggered.
  • Loading branch information
mkhin24 committed Sep 5, 2024
1 parent 09f6690 commit 79ea15b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controllers/mods.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ modsController.flags = {};

// The following function has been broken down with helper functions to reduce cognitive complexity
modsController.flags.list = async function (req, res) {
console.log('mods.js has been loaded and is executing. The listing function for the flags is functional with refactored code.');
const [isAdminOrGlobalMod, moderatedCids,, { sorts }] = await initialize(req);
let [,, { filters }] = await initialize(req);

Expand Down

0 comments on commit 79ea15b

Please sign in to comment.