1
0
mirror of synced 2025-01-22 11:23:40 +01:00
This commit is contained in:
Shiroi Kitsu 2023-01-22 09:54:03 +07:00
parent 221d60b38b
commit 4c0ad8193d
2 changed files with 4 additions and 4 deletions

View File

@ -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!');

View File

@ -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:{