Skip to content

Commit 90e9c47

Browse files
authored
bug: allow stage creation during Setup and Registration Open tourname… (#93)
1 parent 93e4b4f commit 90e9c47

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hasura/triggers/tournament_brackets.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ BEGIN
4747
JOIN tournament_stages ts ON ts.tournament_id = t.id
4848
WHERE ts.id = NEW.tournament_stage_id;
4949

50-
IF tournament_status NOT IN ('RegistrationClosed', 'Live') THEN
51-
RAISE EXCEPTION 'Tournament status must be Registration Closed or Live' USING ERRCODE = '22000';
50+
IF tournament_status NOT IN ('Setup', 'RegistrationOpen', 'RegistrationClosed', 'Live') THEN
51+
RAISE EXCEPTION 'Tournament status must be Setup, Registration Open, Registration Closed or Live' USING ERRCODE = '22000';
5252
END IF;
5353
END IF;
5454

0 commit comments

Comments
 (0)