Advertisement
y2kbug

Untitled

Mar 4th, 2020
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. async syncData(): Promise<Boolean> {
  2.       await Promise.all(wemTreatmentCategories.map(wemTreatmentCategory => {
  3.        
  4.           const treatmentCategory = TreatmentCategory.create({
  5.             name: wemTreatmentCategory.name,
  6.             status: wemTreatmentCategory.deleted == 0 ? TreatmentCategoryStatus.ACTIVE : TreatmentCategoryStatus.INACTIVE,
  7.             wemId: wemTreatmentCategory.id,
  8.           });
  9.           const result = treatmentCategory.save();
  10.  
  11.        
  12.  
  13.           wemToPosMap[wemTreatmentCategory.id] = treatmentCategory.id;
  14.         }
  15.       }));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement