Skip to content
Snippets Groups Projects
Commit 1183670f authored by Agustin Ruiz Diaz Cambon's avatar Agustin Ruiz Diaz Cambon
Browse files

Auditor fix for paginator

parent ab51fe6e
Branches feature/Mailing
No related tags found
No related merge requests found
......@@ -9,9 +9,9 @@ const router = Router();
const auditGet = async (req: Request, res: Response) => {
try {
const token = req.headers.authorization;
const { filters } = req.query;
const { filters } = req.body;
const audits = await
Auditor.getAudit(Number(req.query.cant), Number(req.query.page), token, filters as string[]);
Auditor.getAudit(Number(req.body.cant), Number(req.body.page), token, filters as string[]);
return logAndRespond(res, 200, 'send', audits, 'info', null, null);
} catch (error) {
const e = error as Error;
......@@ -30,7 +30,7 @@ const calculationAuditGet = async (req: Request, res: Response) => {
}
};
router.get('/', auditGet);
router.post('/', auditGet);
router.post('/calculations', calculationAuditGet);
export default router;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment