fix军团:获取邀请列表bug

This commit is contained in:
luying
2021-01-26 17:28:44 +08:00
parent 02b21f27e0
commit af1cef06c0
4 changed files with 4 additions and 6 deletions

View File

@@ -94,7 +94,7 @@ export default class UserGuildApply extends BaseModel {
const lastApply = await this.findByCode(lastApplyCode);
condition["createdAt"] = { $lt: lastApply.createdAt };
}
const list: UserGuildApplyType[] = await UserGuildApplyModel.find(condition)
const list: UserGuildApplyType[] = await UserGuildApplyModel.find(condition, {_id: 0})
.sort({ createdAt: -1 })
.select('applyCode guild')
.populate({