Skip to content

Commit

Permalink
Merge pull request #1653 from rodekruis/fix.mock-drought-far-leadtime…
Browse files Browse the repository at this point in the history
…s-enabled

fix: do not send any mock exposure data when leadTime > 3 months
  • Loading branch information
jannisvisser authored Oct 15, 2024
2 parents 3b81871 + 7f269dd commit e74290b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/API-service/src/scripts/scripts.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ export class ScriptsService {
triggered
) {
if (Number(activeLeadTime.split('-')[0]) > 3) {
copyOfExposureUnit.forEach((area) => (area.amount = 0));
copyOfExposureUnit = [];
// Hard-code lead-times of more then 3 months to non-trigger
} else if (eventRegion !== this.nationalDroughtRegion) {
// Hard-code that only areas of right region are triggered per selected leadtime
Expand Down

0 comments on commit e74290b

Please sign in to comment.