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