fix commit
This commit is contained in:
1 parent
07ea9c590d
commit
6205a3385e
2 files changed
+2
-1
No files matched your search
@@ -243,7 +243,7 @@ const deleteUserController = async (req, res, next) => {
|
||||
// Check if the user exists
|
||||
const user = await req.db.getUserById(req.params.userId);
|
||||
if (!user) {
|
||||
throw new Error(errorMessages.AUTH_USER_NOT_FOUND);
|
||||
throw new Error(errorMessages.DB_USER_NOT_FOUND);
|
||||
}
|
||||
|
||||
// Delete the user
|
||||
|
||||
Reference in new issue
Block a user