From ae1eb3cda4b79f08ce9c551db8043952587966ac Mon Sep 17 00:00:00 2001 From: Howard Halim Date: Wed, 2 Apr 2025 03:29:08 -0400 Subject: [PATCH] Enforce serious testsolving for MGCI --- app/invite/[code]/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/invite/[code]/actions.ts b/app/invite/[code]/actions.ts index 5967b96..faf805c 100644 --- a/app/invite/[code]/actions.ts +++ b/app/invite/[code]/actions.ts @@ -59,7 +59,7 @@ export async function acceptInvite( collectionId: invite.collectionId, accessLevel: invite.accessLevel, // TODO: find a better way to enforce a specific testsolver type - ...(invite.collection.cid === "topsoj" && { + ...(["topsoj", "mgci"].includes(invite.collection.cid) && { testsolverType: "Serious", seriousTestsolverStartedAt: invite.collection.createdAt, }),