Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions lib/user-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export const getUserById = async (id: string) => {
}
});
return user;
} catch (error) {
console.log(error);
} catch {
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
return null;
}
};
Expand All @@ -21,8 +20,7 @@ export const getUserByEmail = async (email: string) => {
where: { email }
});
return user;
} catch (error) {
console.log(error);
} catch {
return null;
}
};
Expand All @@ -35,8 +33,7 @@ export const getAccountByUserId = async (userId: string) => {
}
});
return account;
} catch (error) {
console.log(error);
} catch {
return null;
}
};