Skip to content

Commit db1aeef

Browse files
authoredMay 27, 2021
fix the same woopsies again
1 parent fb1655c commit db1aeef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎Routes/Admin.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ router.post('/add', async (req, res) => {
2929
router.post('/register', async (req, res) => {
3030

3131
const userID = req.urlParams.userID;
32-
if (!userID) return req.json({ error: true, message: 'no userID' });
32+
if (!userID) return res.json({ error: true, message: 'no userID' });
3333

3434
const users = process.s;
3535

@@ -48,7 +48,7 @@ router.get('/user/info', async (req, res) => {
4848

4949
const userID = req.urlParams.userID;
5050

51-
if (!userID) return req.json({ error: true, message: 'no userID' });
51+
if (!userID) return res.json({ error: true, message: 'no userID' });
5252

5353
const users = process.s;
5454

0 commit comments

Comments
 (0)