refs #5051 continue fixing test jenkins
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Alexandre Riera 2023-01-03 10:11:52 +01:00
parent cef0152ef5
commit 17a7bfbf3b
1 changed files with 2 additions and 1 deletions

View File

@ -25,13 +25,14 @@ module.exports = Self => {
const minDate = new Date();
minDate.setFullYear(minDate.getFullYear() - 1);
const where = {dated: {gte: new Date(minDate)}};
const where = {dated: {gte: minDate}};
filter = mergeFilters(filter, {where});
const stmt = new ParameterizedSQL(
`SELECT * FROM campaign`);
stmt.merge(conn.makeWhere(filter.where));
stmt.merge('GROUP BY code');
stmt.merge('ORDER BY dated ASC');
stmt.merge(conn.makePagination(filter));
return conn.executeStmt(stmt);