ocm
This commit is contained in:
parent
e50de3303a
commit
aaa872ea35
@ -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!');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user