Skip to content

Instantly share code, notes, and snippets.

@CarlesRa
Created September 14, 2022 10:01
Show Gist options
  • Save CarlesRa/bedf2f0af4bd10e9747b31a85d9c7ae1 to your computer and use it in GitHub Desktop.
Save CarlesRa/bedf2f0af4bd10e9747b31a85d9c7ae1 to your computer and use it in GitHub Desktop.
forkJoin do a forkJoin #f-join
forkJoin([
this.taxService.getAll(),
this.bookableSequenceService.getAll(),
this.bookableContractService.getAll(),
this.extranetUserService.getAll(),
this.emailEventNotificationService.getAll(),
this.cacheService.getReferenceInfo([SIME_CONFIG.REFERENCES_IDS.SysCountry]),
this.adTableService.load(SIME_CONFIG.TABLE_IDS.GLB_ESTABLISHMENT)
]).subscribe({
next: (resp) => {
this.iTaxList = resp[0];
this.iBookableSequenceList = resp[1];
this.iBookableContractList = resp[2];
this.iExtranetUserList = resp[3].filter(eu => eu.idClient !== '0');
this.iEventEmailConfigurationList = resp[4];
this.sysCountryReference = resp[5].find(ref => ref.idReference === SIME_CONFIG.REFERENCES_IDS.SysCountry);
this.table = resp[6];
},
error: (err) => console.log(err),
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment