Fix being able to check in twice

This commit is contained in:
Kalle 2023-10-21 15:01:22 +03:00
parent 39b58adfc4
commit 790b04ce1f

View File

@ -170,6 +170,7 @@ export const action: ActionFunction = async ({ request, params }) => {
}
case "CHECK_IN": {
validate(ownTeam);
validate(!ownTeam.checkedInAt, "You have already checked in");
validateCanCheckIn({
event,
team: ownTeam,