1
0
mirror of synced 2025-02-20 20:41:19 +01:00
This commit is contained in:
ghkkk090 2022-08-17 16:54:14 +07:00
parent e50de3303a
commit aaa872ea35

View File

@ -103,6 +103,19 @@ export default class GhostModule extends Module {
competitionPeriodStartTimestamp = competitionPeriodEndTimeStamp + ocmEventDate.lengthOfInterval;
}
if(ocmEventDate.lengthOfInterval !== 0)
{
let qualifyingEndTimeStamp = ocmEventDate.qualifyingPeriodCloseAt - ocmEventDate.lengthOfInterval
await prisma.oCMEvent.update({
where:{
dbId: ocmEventDate.dbId
},
data:{
qualifyingPeriodCloseAt: qualifyingEndTimeStamp
}
})
}
console.log('Calculating Period Completed!');
}