Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async syncData(): Promise<Boolean> {
- await Promise.all(wemTreatmentCategories.map(wemTreatmentCategory => {
- const treatmentCategory = TreatmentCategory.create({
- name: wemTreatmentCategory.name,
- status: wemTreatmentCategory.deleted == 0 ? TreatmentCategoryStatus.ACTIVE : TreatmentCategoryStatus.INACTIVE,
- wemId: wemTreatmentCategory.id,
- });
- const result = treatmentCategory.save();
- wemToPosMap[wemTreatmentCategory.id] = treatmentCategory.id;
- }
- }));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement