Add update meta function for User collection

parent c6692cc5
......@@ -79,6 +79,9 @@ module.exports = function (User) {
};
return dbUtils.dbFindOneAndUpdate(User, {_id : userId}, update);
},
updateMeta : function (userId, meta) {
return dbUtils.dbFindOneAndUpdate(User, {_id : userId}, {meta : meta});
}
}
}
};
{
"name": "mirera-db",
"version": "1.4.1",
"version": "1.4.2",
"description": "DB utils for mirera program testing server",
"main": "index.js",
"scripts": {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment