add get user by vk login

parent b3580a9b
......@@ -20,6 +20,9 @@ module.exports = function (User) {
getUserByLogin : function (login) {
return dbUtils.dbFindOne(User, {login: login});
},
getUserByVKLogin : function (vk_login) {
return dbUtils.dbFindOne(User, {vk_login: vk_login});
},
getUserByIds : function (ids) {
return dbUtils.dbFind(User, { _id: { $in: ids }});
},
......
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