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

CalculationAuditor change to work with newer

versions of MySQL
parent 98bd1967
No related branches found
No related tags found
No related merge requests found
Pipeline #16289 passed
......@@ -57,14 +57,14 @@ const calculationAudits = async (userIds: number[], dateFrom: string,
whereStatement.isTemplateUsed = isTemplateUsed;
const res = await CalculationAuditor.count({
const res = await CalculationAuditor.findAndCountAll({
attributes: [
'id', 'user_id', 'isTemplateUsed', 'createdAt',
],
where: whereStatement,
});
return res;
return res.count;
};
const getAudit = async (cant: number, page: number, token: any) => {
......
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