remove lucia

This commit is contained in:
Milo Schwartz 2024-10-13 17:13:47 -04:00
parent f14fb90ab6
commit 99d6cababa
No known key found for this signature in database
39 changed files with 234 additions and 167 deletions

View file

@ -36,7 +36,7 @@ export async function addUserAction(req: Request, res: Response, next: NextFunct
}
// Check if the user exists
const user = await db.select().from(users).where(eq(users.id, userId)).limit(1);
const user = await db.select().from(users).where(eq(users.userId, userId)).limit(1);
if (user.length === 0) {
return next(createHttpError(HttpCode.NOT_FOUND, `User with ID ${userId} not found`));
}
@ -58,4 +58,4 @@ export async function addUserAction(req: Request, res: Response, next: NextFunct
logger.error(error);
return next(createHttpError(HttpCode.INTERNAL_SERVER_ERROR, "An error occurred..."));
}
}
}