Fix return response and add list

This commit is contained in:
Owen Schwartz
2024-10-02 21:17:38 -04:00
parent e85c94d21d
commit ecdf2dfd04
22 changed files with 354 additions and 17 deletions

View File

@@ -43,7 +43,7 @@ export async function getUser(req: Request, res: Response, next: NextFunction):
const { passwordHash: _, ...userWithoutPassword } = user[0];
return res.status(HttpCode.OK).send(
response({
response(res, {
data: userWithoutPassword,
success: true,
error: false,