Skip to content

Commit 4b76eb4

Browse files
committed
bug: fix issue where region would be picked up from a non ranked server region
1 parent 8eb8b6c commit 4b76eb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hasura/triggers/match_options.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ lan_count int;
1818
region_count int;
1919
BEGIN
2020
SELECT COUNT(DISTINCT region) INTO region_count
21-
FROM servers where enabled = true;
21+
FROM servers where enabled = true and type = 'Ranked';
2222

2323
IF NEW.regions IS NOT NULL THEN
2424
SELECT count(*) INTO lan_count

0 commit comments

Comments
 (0)