refs #5051 json date
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Alexandre Riera 2023-01-03 11:39:50 +01:00
parent 5c2e85d499
commit b5ef090080
1 changed files with 2 additions and 3 deletions

View File

@ -25,7 +25,7 @@ module.exports = Self => {
const minDate = new Date();
minDate.setFullYear(minDate.getFullYear() - 1);
const where = {dated: {gte: minDate}};
const where = {dated: {gte: minDate.toJSON().split('T')[0]}};
filter = mergeFilters(filter, {where});
const stmt = new ParameterizedSQL(
@ -37,8 +37,7 @@ module.exports = Self => {
stmt.merge('GROUP BY code');
stmt.merge('LIMIT 10000000000000000000');
stmt.merge(conn.makePagination(filter));
console.log(stmt);
console.log(minDate);
return conn.executeStmt(stmt);
};
};