daily pastebin goal
56%
SHARE
TWEET

Untitled

a guest Nov 22nd, 2017 53 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
Top