Last active
October 11, 2022 20:19
-
-
Save ajcrites/09e4e64c38be886488e544504226058d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class SpecialsService { | |
specials: Special[] = []; | |
... | |
deleteStaleSpecials() { | |
return Promise.all( | |
this.specials.map(async (special) => { | |
if (special.stale) { | |
await this.deleteSpecial(special); | |
} | |
}); | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment