applay-utils 1.7.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/utils/querys.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "applay-utils",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Utilitary tools for Applay applications",
5
5
  "scripts": {
6
6
  "build": "npm version patch",
package/utils/querys.js CHANGED
@@ -96,7 +96,8 @@ var querys = {
96
96
  var ids = result.getInsertedIds();
97
97
  resolve({status:true,ids:ids});
98
98
  });
99
- })
99
+ }),
100
+ 'bulkWriteAsync': (db, collection, item) => new Promise(resolve => db.collection(collection).bulkWrite(item, (err, result) => resolve(err || result)))
100
101
  }
101
102
 
102
103
  module.exports = querys;