mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-17 02:16:38 +00:00
Fix return response and add list
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user