Skip to content

Instantly share code, notes, and snippets.

@ajcrites
Last active October 11, 2022 20:19
Show Gist options
  • Save ajcrites/09e4e64c38be886488e544504226058d to your computer and use it in GitHub Desktop.
Save ajcrites/09e4e64c38be886488e544504226058d to your computer and use it in GitHub Desktop.
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