军团:添加debug接口

This commit is contained in:
luying
2021-01-25 10:43:17 +08:00
parent c4a106745b
commit d8d14283bf
5 changed files with 38 additions and 12 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ export default class Guild extends BaseModel {
return result;
}
public static async updateInfo(code: string, update: GuildUpdateParam, incParam?: { managerCnt?: number }, select?: string) {
public static async updateInfo(code: string, update: GuildUpdateParam, incParam?: { managerCnt?: number, fund?: number }, select?: string) {
const result: GuildType = await GuildModel.findOneAndUpdate({ code }, { $set: update, $inc: incParam }, { new: true }).select(select).lean();
return result;
}