daily pastebin goal
58%
SHARE
TWEET

Untitled

a guest Nov 22nd, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. db.collection("files").find().limit(3).toArray(function(err, result) {
  2.     if (err) throw err;
  3.     result.forEach(function(element) {
  4.         db.collection("files").deleteOne(element, function(err, obj) {
  5.         if (err) throw err;
  6.             db.collection("procesing").insertOne(element, function(err, res) {
  7.             if (err) throw err;
  8.             });
  9.         });
  10.     });
  11. });
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