mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-28 04:03:47 +00:00
Fix return response and add list
This commit is contained in:
@@ -31,7 +31,7 @@ export async function createOrg(req: Request, res: Response, next: NextFunction)
|
||||
}).returning();
|
||||
|
||||
return res.status(HttpCode.CREATED).send(
|
||||
response({
|
||||
response(res, {
|
||||
data: newOrg[0],
|
||||
success: true,
|
||||
error: false,
|
||||
|
||||
Reference in New Issue
Block a user