Log error correctly (#17755)
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user