Meteor wrapAsync syntax
问题 How do I use the Meteor wrapAsync? Below is what I am trying to do if (tempTreatment.groupId === undefined) { // create new group Meteor.wrapAsync(Meteor.call('createTreatmentGroup', salon, tempTreatment.groupName, tempTreatment.groupName)); // get group id var getGroup = Meteor.wrapAsync(Meteor.call('getTreatmentGroup', salon, tempTreatment.groupName)); console.log(getGroup); tempTreatment.groupId = getGroup._id; } I want to run these two Meteor.call functions synchronosly but I get