From 4b3b82589504ecd5c33b8b9e4f43d4efa01fab9e Mon Sep 17 00:00:00 2001 From: Malaber Date: Sun, 19 Apr 2026 13:51:16 +0200 Subject: [PATCH] Add sync params to Tournament Serializer --- app/serializers/tournament_serializer.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/serializers/tournament_serializer.rb b/app/serializers/tournament_serializer.rb index 854ed5c..26e817a 100644 --- a/app/serializers/tournament_serializer.rb +++ b/app/serializers/tournament_serializer.rb @@ -2,13 +2,20 @@ class TournamentSerializer < SimpleTournamentSerializer attributes :description, :playoff_teams_amount, - :instant_finalists_amount, :intermediate_round_participants_amount + :instant_finalists_amount, :intermediate_round_participants_amount, + :read_only_mode, :sync_target_url, :sync_last_push_error + # NEVER expose sync_auth_token anywhere - it should only ever be written to or checked against + has_many :stages attribute :timer_end do object.timer_end&.iso8601 end + attribute :sync_last_pushed_at do + object.sync_last_pushed_at&.iso8601 + end + attribute :owner_username do object.owner.username end