SHARE
TWEET

Untitled

kyle_o Jun 20th, 2019 (edited) 102 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. kickOff().catch();
  2. async function kickOff(){
  3.   await new Promise((resolve, reject) => {
  4.   getWishlists((err) => {
  5.     if(err){
  6.       reject(err);
  7.     }
  8.     else{
  9.       console.log("wishlists got");
  10.       resolve();
  11.       }
  12.   },0);
  13.   });
  14.   await new Promise((resolve, reject) => {
  15.     getProducts((err) => {
  16.       if(err){
  17.         reject(err);
  18.       }
  19.       else{
  20.         console.log("products got");
  21.         resolve();
  22.         }
  23.     },0);
  24.     });
  25. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top