revert
This commit is contained in:
parent
221d60b38b
commit
4c0ad8193d
@ -139,7 +139,7 @@ export default class GhostModule extends Module {
|
||||
// If not yet tallying
|
||||
if(OCMTallyCount === 0)
|
||||
{
|
||||
await ghost_ocm.ocmTallying(body, OCMCurrentPeriod.periodId, false, ocmEventDate!.competitionId);
|
||||
await ghost_ocm.ocmTallying(body, OCMCurrentPeriod.periodId, false);
|
||||
|
||||
// Completed
|
||||
console.log('Tally Completed!');
|
||||
@ -206,7 +206,7 @@ export default class GhostModule extends Module {
|
||||
{
|
||||
console.log('Tallying');
|
||||
|
||||
await ghost_ocm.ocmTallying(body, OCMCurrentPeriod.periodId, true, ocmEventDate.competitionId);
|
||||
await ghost_ocm.ocmTallying(body, OCMCurrentPeriod.periodId, true);
|
||||
|
||||
// Completed
|
||||
console.log('Last Tally Completed!');
|
||||
|
@ -6,7 +6,7 @@ import wmproto from "../../wmmt/wm.proto";
|
||||
|
||||
|
||||
// OCM Tallying
|
||||
export async function ocmTallying(body: wm.protobuf.LoadGhostCompetitionInfoRequest, periodId: number, ended: boolean, competitionId: number)
|
||||
export async function ocmTallying(body: wm.protobuf.LoadGhostCompetitionInfoRequest, periodId: number, ended: boolean)
|
||||
{
|
||||
// OCM is still on going
|
||||
if(ended === false)
|
||||
@ -283,7 +283,7 @@ export async function ocmTallying(body: wm.protobuf.LoadGhostCompetitionInfoRequ
|
||||
// Get user that playing OCM qualifying day
|
||||
let OCMTally = await prisma.oCMTally.findMany({
|
||||
where:{
|
||||
competitionId: competitionId,
|
||||
competitionId: body.competitionId,
|
||||
periodId: periodId
|
||||
},
|
||||
orderBy:{
|
||||
|
Loading…
x
Reference in New Issue
Block a user