Commit 49b74c78 authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

set purge date to 11 may

parent 478d6a1b
...@@ -1339,7 +1339,7 @@ const AggregatorUsageEvents = async ({ ...@@ -1339,7 +1339,7 @@ const AggregatorUsageEvents = async ({
}) })
.startOf('day') .startOf('day')
const lastMonth = 5 const lastMonth = 5
if (today.day === 3 && today.month === lastMonth) { if (today.day === 11 && today.month === lastMonth) {
let monthToAggregate = 1 let monthToAggregate = 1
for (monthToAggregate; monthToAggregate <= lastMonth; monthToAggregate++) { for (monthToAggregate; monthToAggregate <= lastMonth; monthToAggregate++) {
await calculateConsumptionVariation(client, monthToAggregate) await calculateConsumptionVariation(client, monthToAggregate)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment