Guest User

Untitled

a guest
Jul 19th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. // _getShopData, _getIemData, _getTestimonial - async funcs
  2.  
  3. getData() {
  4. return this._getShopData().then(shop =>
  5. Promise.all([this._getIemData(this._MALL_ID), this._getTestimonial(shop.shop_url)]).then(
  6. ([item, testimonial]) => {
  7. return {
  8. item: {
  9. ...item,
  10. shop_info: shop
  11. },
  12. shop: { ...shop, testimonial: testimonial }
  13. };
  14. }
  15. )
  16. );
  17. }
Add Comment
Please, Sign In to add comment