Some changes
This commit is contained in:
@@ -12,6 +12,7 @@ export const authenticate = async (req, res, next) => {
|
||||
}
|
||||
next();
|
||||
} catch(error) {
|
||||
console.log(error);
|
||||
return res.status(500).json({ error: 'Internal Server Error at auth' });
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user