任务:添加debug接口
This commit is contained in:
@@ -99,9 +99,9 @@ export default class UserTaskRec extends BaseModel {
|
||||
return rec
|
||||
}
|
||||
|
||||
public static async getHistoryRec(roleId: string, today?: Date) {
|
||||
public static async getHistoryRec(roleId: string, type: number, today?: Date) {
|
||||
if(!today) today = getTodayZeroDate(5);
|
||||
let rec: UserTaskRecType[] = await UserTaskRecModel.find({ roleId, type: TASK_FUN_TYPE.DAILY, createdAt: { $lt: today } }).lean();
|
||||
let rec: UserTaskRecType[] = await UserTaskRecModel.find({ roleId, type, createdAt: { $lt: today } }).lean();
|
||||
return rec
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user