mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
More intermediary work
This commit is contained in:
@@ -2,8 +2,8 @@ var path = require("path");
|
||||
var mongojs = require("mongojs");
|
||||
var db = require(pathThumbnails + "/handlers/db.js");
|
||||
|
||||
function update(collection, searchObject, updateObject, extraObject) {
|
||||
return new Promise((resolve, reject) => {
|
||||
async function update(collection, searchObject, updateObject, extraObject) {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
db.collection(collection).update(
|
||||
searchObject,
|
||||
updateObject,
|
||||
@@ -19,4 +19,4 @@ function update(collection, searchObject, updateObject, extraObject) {
|
||||
});
|
||||
}
|
||||
|
||||
module.exports.update = update;
|
||||
module.exports = update;
|
||||
|
||||
Reference in New Issue
Block a user