Generating and saving a list of ParseObjects within a Parse.Cloud.httpRequest in a cloud function

前端 未结 1 1464
野趣味
野趣味 2021-02-06 12:55

So, I\'m defining a cloud function that\'s supposed to make a call to the foursquare api and generate a list of restaurants (each restaurant is a ParseObject) from the returned

1条回答
  •  梦如初夏
    2021-02-06 13:31

    I believe your issue is that you aren't returning the Promise from Parse.Object.saveAll(restaurants) when your httpRequest() is complete. Try returning that saveAll() promise and see if it completes.

    0 讨论(0)
提交回复
热议问题