fix: conflicts
This commit is contained in:
1 parent
b52832f333
commit
8627b28a8e
2 files changed
-17
No files matched your search
@@ -40,6 +40,5 @@ export const verifyApiKey: NextMiddleware = async (req, res, next) => {
|
||||
if (!apiKey.userId) return res.status(404).json({ error: "No user found for this apiKey" });
|
||||
/* We save the user id in the request for later use */
|
||||
req.userId = apiKey.userId;
|
||||
console.log(`User ${apiKey.userId} verified`);
|
||||
await next();
|
||||
};
|
||||
Reference in new issue
Block a user