fix: more logging

This commit is contained in:
Agusti Fernandez Pardo committed 2022-05-23 23:23:53 +02:00
1 parent 4629c5d5c7
commit 6099bfb4ee
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -40,5 +40,6 @@ 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();
};