diff options
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/routes/admin/userDisable.js | 2 | ||||
| -rw-r--r-- | src/api/routes/admin/userEnable.js | 2 | ||||
| -rw-r--r-- | src/api/routes/admin/userPromote.js | 2 | ||||
| -rw-r--r-- | src/api/routes/albums/albumFullGET.js | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/api/routes/admin/userDisable.js b/src/api/routes/admin/userDisable.js index 65bcf4e..e39c811 100644 --- a/src/api/routes/admin/userDisable.js +++ b/src/api/routes/admin/userDisable.js @@ -5,7 +5,7 @@ class userDisable extends Route { super('/admin/users/disable', 'post', { adminOnly: true }); } - async run(req, res, db) { + async run(req, res, db, user) { if (!req.body) return res.status(400).json({ message: 'No body provided' }); const { id } = req.body; if (!id) return res.status(400).json({ message: 'No id provided' }); diff --git a/src/api/routes/admin/userEnable.js b/src/api/routes/admin/userEnable.js index bdba7a6..cff622f 100644 --- a/src/api/routes/admin/userEnable.js +++ b/src/api/routes/admin/userEnable.js @@ -5,7 +5,7 @@ class userEnable extends Route { super('/admin/users/enable', 'post', { adminOnly: true }); } - async run(req, res, db) { + async run(req, res, db, user) { if (!req.body) return res.status(400).json({ message: 'No body provided' }); const { id } = req.body; if (!id) return res.status(400).json({ message: 'No id provided' }); diff --git a/src/api/routes/admin/userPromote.js b/src/api/routes/admin/userPromote.js index 6534d16..4a5ed88 100644 --- a/src/api/routes/admin/userPromote.js +++ b/src/api/routes/admin/userPromote.js @@ -5,7 +5,7 @@ class userPromote extends Route { super('/admin/users/promote', 'post', { adminOnly: true }); } - async run(req, res, db) { + async run(req, res, db, user) { if (!req.body) return res.status(400).json({ message: 'No body provided' }); const { id } = req.body; if (!id) return res.status(400).json({ message: 'No id provided' }); diff --git a/src/api/routes/albums/albumFullGET.js b/src/api/routes/albums/albumFullGET.js index 629f57a..f92f9ae 100644 --- a/src/api/routes/albums/albumFullGET.js +++ b/src/api/routes/albums/albumFullGET.js @@ -6,7 +6,7 @@ class albumGET extends Route { super('/album/:id/full', 'get'); } - async run(req, res, db) { + async run(req, res, db, user) { const { id } = req.params; if (!id) return res.status(400).json({ message: 'Invalid id supplied' }); |