Log error correctly (#17755)

This commit is contained in:
Hariom Balhara
2024-11-20 12:03:07 -03:00
committed by GitHub
parent c16ef798f5
commit a534d39351
@@ -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;
});