SHARE
TWEET

Untitled

a guest Dec 3rd, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import fetchOldDevices from './fetchOldDevices'
  2.  
  3. const ROW_PER_BATCH = process.env.ROW_PER_BATCH || 100
  4.  
  5. const run = async () => {
  6.   while (true) {
  7.     try {
  8.       const data = await fetchOldDevices(ROW_PER_BATCH)
  9.       console.log(data);
  10.     } catch (e) {
  11.       console.log(e.message)
  12.     }
  13.   }
  14. }
  15.  
  16. run()
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