mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-04-06 02:19:05 +00:00
Update next-connect middleware to return next() to fix error handling
This commit is contained in:
@@ -46,7 +46,7 @@ const checkIfUserCanEditUser = async (
|
||||
throw new ServerError('You are not permitted to modify this user', 403);
|
||||
}
|
||||
|
||||
await next();
|
||||
return next();
|
||||
};
|
||||
|
||||
const editUser = async (
|
||||
|
||||
Reference in New Issue
Block a user