Skip to content

Commit

Permalink
Provide correct iterable for Promise.all #817 (#818)
Browse files Browse the repository at this point in the history
Co-authored-by: Wojciech Meler <wojciech.meler@grupawp.pl>
  • Loading branch information
wmeler and Wojciech Meler authored Dec 1, 2021
1 parent a74c0e1 commit c16c945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/utils/time-monitor/time-monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class TimeMonitor {
const timeTags = timekeeper.timeTags;

this.doingChecks = true;
const checkTasks = timeTags.filter(this.isStale).map(this.doCheck);
const checkTasks = timeTags.filter(this.isStale).map(this.doCheck).values();
Promise.all(checkTasks).then(() => {
this.doingChecks = false;
});
Expand Down

0 comments on commit c16c945

Please sign in to comment.