diff --git a/back/methods/campaign/latest.js b/back/methods/campaign/latest.js index 20dda8a26..8817be385 100644 --- a/back/methods/campaign/latest.js +++ b/back/methods/campaign/latest.js @@ -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: new Date(minDate)}}; filter = mergeFilters(filter, {where}); const stmt = new ParameterizedSQL(