diff options
| author | Pitu <[email protected]> | 2019-03-14 23:14:24 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2019-03-14 23:14:24 +0900 |
| commit | 79eb00f71cc18dbb195a29bd79871d35176f33d1 (patch) | |
| tree | a73c918ab74a76e54941cb801d157b055537a7b5 /src/api/routes/admin/userDisable.js | |
| parent | Add uuid package (diff) | |
| download | host.fuwn.me-79eb00f71cc18dbb195a29bd79871d35176f33d1.tar.xz host.fuwn.me-79eb00f71cc18dbb195a29bd79871d35176f33d1.zip | |
Small fixes
Diffstat (limited to 'src/api/routes/admin/userDisable.js')
| -rw-r--r-- | src/api/routes/admin/userDisable.js | 2 |
1 files changed, 1 insertions, 1 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' }); |