新武将:activityId参数

This commit is contained in:
luying
2022-08-03 15:12:30 +08:00
parent 3f06432b3f
commit 25c6785ac9
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ export default class UserGacha extends BaseModel {
return rec;
}
public static async findByRole(roleId: string, gachaId: number, activityId: number = 0) {
public static async findByRole(roleId: string, gachaId: number, activityId: number) {
const doc = new UserGachaModel();
const update = Object.assign(doc.toJSON(), { roleId, gachaId, activityId });
delete update._id;