aboutsummaryrefslogtreecommitdiff
path: root/src/api/routes/admin
diff options
context:
space:
mode:
authorPitu <[email protected]>2019-03-14 23:14:24 +0900
committerPitu <[email protected]>2019-03-14 23:14:24 +0900
commit79eb00f71cc18dbb195a29bd79871d35176f33d1 (patch)
treea73c918ab74a76e54941cb801d157b055537a7b5 /src/api/routes/admin
parentAdd uuid package (diff)
downloadhost.fuwn.me-79eb00f71cc18dbb195a29bd79871d35176f33d1.tar.xz
host.fuwn.me-79eb00f71cc18dbb195a29bd79871d35176f33d1.zip
Small fixes
Diffstat (limited to 'src/api/routes/admin')
-rw-r--r--src/api/routes/admin/userDisable.js2
-rw-r--r--src/api/routes/admin/userEnable.js2
-rw-r--r--src/api/routes/admin/userPromote.js2
3 files changed, 3 insertions, 3 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' });