后台:记录最新更新人

This commit is contained in:
luying
2021-06-10 14:32:28 +08:00
parent 16fd00f9cd
commit 5c5ee8b7fc
8 changed files with 24 additions and 19 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ export default class Activity_Self_Service extends BaseModel {
}
//添加挑战记录
public static async addChallengeRecord(serverId: number, activityId: number, roleId: string, roundIndex: number, count: number, time: Date) {
public static async addChallengeRecord(serverId: number, activityId: number, roleId: string, roundIndex: number, count: number, _time: Date) {
let result: ActivitySelfServiceModelType = await ActivitySelfServiceModel.findOneAndUpdate(
{ serverId, roleId, activityId, roundIndex, },
{ $push: { challengeRecords: { count, time: new Date() } } }, { upsert: true, new: true }).lean(true);