Skip to content

Commit

Permalink
feat: start municipality cronjob
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudambro committed Feb 5, 2024
1 parent 34bf073 commit 3b283cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api-node/src/cronjobs/municipalities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function initMunicipalities() {
name: 'Update Municipalities',
cronTime: '15 3 15 1,6,10 *', // At 03:15 on day-of-month 15 in January, June and October.
job: fillOrUpdateMunicipalitiesInDB,
runOnInit: false,
runOnInit: true,
}),
)
.then(
Expand All @@ -36,7 +36,7 @@ export async function initMunicipalities() {
name: "Update bathing_water_sites Municipality's column",
cronTime: '40 3 15 6,12 *', // At 03:40 on day-of-month 15 in January, June and October.
job: updateMunicipalitiesWithBathingWaterSites,
runOnInit: false,
runOnInit: true,
}),
)
.then(() => {
Expand Down

0 comments on commit 3b283cb

Please sign in to comment.