diff --git a/api/routes/admin.js b/api/routes/admin.js index f52b46a..59ea907 100644 --- a/api/routes/admin.js +++ b/api/routes/admin.js @@ -27,9 +27,9 @@ router.get('/users', async (req, res) => { // Update a user's tier router.put('/users/:id/tier', async (req, res) => { const { id } = req.params; - const { role } = req.body; // 'free', 'pro', 'enterprise' + const { role } = req.body; // 'free', 'pro', 'enterprise', 'admin' - if (!['free', 'pro', 'enterprise'].includes(role)) { + if (!['free', 'pro', 'enterprise', 'admin'].includes(role)) { return res.status(400).json({ error: 'Invalid role specified' }); }