Add sync params to Tournament Serializer
This commit is contained in:
parent
7ec16521bd
commit
4b3b825895
|
|
@ -2,13 +2,20 @@
|
||||||
|
|
||||||
class TournamentSerializer < SimpleTournamentSerializer
|
class TournamentSerializer < SimpleTournamentSerializer
|
||||||
attributes :description, :playoff_teams_amount,
|
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
|
has_many :stages
|
||||||
|
|
||||||
attribute :timer_end do
|
attribute :timer_end do
|
||||||
object.timer_end&.iso8601
|
object.timer_end&.iso8601
|
||||||
end
|
end
|
||||||
|
|
||||||
|
attribute :sync_last_pushed_at do
|
||||||
|
object.sync_last_pushed_at&.iso8601
|
||||||
|
end
|
||||||
|
|
||||||
attribute :owner_username do
|
attribute :owner_username do
|
||||||
object.owner.username
|
object.owner.username
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue