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
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
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,