fix: fix userModel uids bug

This commit is contained in:
suxiaoxin 2017-07-24 16:01:53 +08:00
parent 5cab6ed047
commit fa283088dc
3 changed files with 10 additions and 2 deletions

View File

@ -41,7 +41,7 @@ class userModel extends baseModel{
}
findByUids(uids){
return this.model.find({
_id: {$in: [107]}
_id: {$in: $uids}
}).select("_id username email role add_time up_time").exec()
}
listWithPaging(page, limit) {

View File

@ -67,6 +67,14 @@ var logModel = function (_baseModel) {
add_time: Number
};
}
/**
* @param {String} title log标题
* @param {String} content log内容
* @param {Enum} type log类型 ['user', 'group', 'interface', 'project', 'other']
* @param {Number} uid 用户id
*/
}, {
key: 'save',
value: function () {

View File

@ -91,7 +91,7 @@ var userModel = function (_baseModel) {
key: 'findByUids',
value: function findByUids(uids) {
return this.model.find({
_id: { $in: [107] }
_id: { $in: $uids }
}).select("_id username email role add_time up_time").exec();
}
}, {