I'm using Meteor, what do I need to do to wait for a promise to be returned from an API call?

前端 未结 3 1528
闹比i
闹比i 2020-12-21 23:37
if (Meteor.isClient) {

  Template.hello.events({
    \'click input\': function () {

      //create a new customer
      Meteor.call(\'createCustomer\', function (e         


        
3条回答
  •  悲&欢浪女
    2020-12-22 00:00

    Update this line

     var customer = Meteor._wrapAsync(balanced.marketplace.customer.create)();
    

提交回复
热议问题