Skip to content

Commit

Permalink
fix: missing date attribute in mock endpoint call AB#14721
Browse files Browse the repository at this point in the history
  • Loading branch information
jannisvisser committed Aug 8, 2022
1 parent 47c19eb commit 2e7b5e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ export class BackendMockScenarioComponent implements OnInit, OnDestroy {
triggered,
removeEvents,
this.disasterType,
1,
)
.subscribe({
next: () => this.processMockSuccess(secret, oldEvent, alert),
Expand Down
5 changes: 2 additions & 3 deletions interfaces/IBF-dashboard/src/app/services/api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,17 +348,16 @@ export class ApiService {
triggered: boolean,
removeEvents: boolean,
disasterType: DisasterType,
eventNr: number,
) {
return this.post(
'scripts/mock-dynamic-data',
{
secret,
countryCodeISO3: country.countryCodeISO3,
disasterType: disasterType.disasterType,
triggered,
removeEvents,
disasterType: disasterType.disasterType,
eventNr,
date: new Date(),
},
false,
);
Expand Down

0 comments on commit 2e7b5e2

Please sign in to comment.