军团:添加debug接口
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ export default class UserGuild extends BaseModel {
|
||||
@prop({ required: true, default: USER_GUILD_STATUS.ON, enum: USER_GUILD_STATUS})
|
||||
status: number;
|
||||
|
||||
@prop({ required: true, type: ActiveRecord, default: [] })
|
||||
@prop({ required: true, type: ActiveRecord, default: [], _id: false })
|
||||
activeRecord: ActiveRecord[];
|
||||
|
||||
@prop({ required: true, default: 0 })
|
||||
|
||||
Reference in New Issue
Block a user