discourse/app/serializers/topic_timer_serializer.rb

15 lines
307 B
Ruby

# frozen_string_literal: true
class TopicTimerSerializer < ApplicationSerializer
attributes :id,
:execute_at,
:duration,
:based_on_last_post,
:status_type,
:category_id
def status_type
TopicTimer.types[object.status_type]
end
end