mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-12 12:54:48 +08:00
fix: fix userModel uids bug
This commit is contained in:
parent
5cab6ed047
commit
fa283088dc
@ -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) {
|
||||
|
@ -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 () {
|
||||
|
@ -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();
|
||||
}
|
||||
}, {
|
||||
|
Loading…
Reference in New Issue
Block a user