Skip to content

Commit

Permalink
fix: dev env
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudambro committed Mar 12, 2024
1 parent 0a4ee37 commit 4e54e33
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
10 changes: 10 additions & 0 deletions .kontinuous/env/dev/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ api:
indice:
~needs: [build-indice, api]

api-node:
env:
- name: ENVIRONMENT
value: "development"

cronjobs:
env:
- name: ENVIRONMENT
value: "development"

jobs:
runs:
seed-db:
Expand Down
14 changes: 8 additions & 6 deletions api-node/src/cronjobs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ if (sentryEnabled) {
});
}

Promise.resolve()
.then(initIndicatorsCleaning) //
.then(initMunicipalities) //
.then(initRecommandations) //
.then(initAggregators) //
.then(initNotifications); //
if (ENVIRONMENT !== 'development') {
Promise.resolve()
.then(initIndicatorsCleaning) //
.then(initMunicipalities) //
.then(initRecommandations) //
.then(initAggregators) //
.then(initNotifications); //
}

0 comments on commit 4e54e33

Please sign in to comment.