Log error correctly (#17755)

This commit is contained in:
Hariom Balhara authored and GitHub committed 2024-11-20 12:03:07 -03:00
1 parent c16ef798f5
commit a534d39351
1 file changed
+2 -1
@@ -60,7 +60,8 @@ export async function getServerSession(options: {
where: { email },
data: { lastActiveAt: new Date() },
})
.catch(() => {
.catch((error) => {
console.error(error);
log.debug("No user found for email: ", email);
return null;
});