活动:修改获取活动逻辑,从serverlist上剥离
This commit is contained in:
@@ -64,8 +64,7 @@ export async function getPlayerLimitPackageData(activityId: number, serverId: nu
|
||||
*/
|
||||
|
||||
export async function limitPackageActivity(serverId: number, roleId: string, type: number) {
|
||||
let { activityGroupId } = await ServerlistModel.findByServerId(serverId);
|
||||
let activityArray: ActivityModelType[] = await ActivityModel.findOpenActivityByType(activityGroupId, type, new Date)
|
||||
let activityArray = await getActivitiesByType(serverId, type);
|
||||
activityArray = activityArray.sort((a, b) => {
|
||||
return b.activityId - a.activityId
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user