refactor: return correct information

This commit is contained in:
Mauricio Siu
2025-02-13 02:45:33 -06:00
parent bc901bcb25
commit 5c24281f72
3 changed files with 9 additions and 3 deletions

View File

@@ -100,8 +100,8 @@ export const findAuthByEmail = async (email: string) => {
};
export const findAuthById = async (authId: string) => {
const result = await db.query.user.findFirst({
where: eq(user.id, authId),
const result = await db.query.users_temp.findFirst({
where: eq(users_temp.id, authId),
columns: {
createdAt: false,
updatedAt: false,