mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-03 21:33:48 +00:00
Use websockets on stats page to determine which match to stat.
This commit is contained in:
@@ -184,6 +184,7 @@ class Mat < ApplicationRecord
|
||||
|
||||
def clear_queue!
|
||||
update!(queue1: nil, queue2: nil, queue3: nil, queue4: nil)
|
||||
broadcast_current_match
|
||||
end
|
||||
|
||||
def unfinished_matches
|
||||
|
||||
@@ -97,6 +97,7 @@ class Tournament < ApplicationRecord
|
||||
|
||||
def destroy_all_matches
|
||||
matches.destroy_all
|
||||
mats.each(&:clear_queue!)
|
||||
end
|
||||
|
||||
def matches_by_round(round)
|
||||
|
||||
Reference in New Issue
Block a user