Fix type of conversation ID in conversations API (#8961)

remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
Eugen Rochko 2018-10-12 01:36:51 +02:00 committed by GitHub
parent ef43f1d2ca
commit 8fd2cc54c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -4,4 +4,8 @@ class REST::ConversationSerializer < ActiveModel::Serializer
attribute :id attribute :id
has_many :participant_accounts, key: :accounts, serializer: REST::AccountSerializer has_many :participant_accounts, key: :accounts, serializer: REST::AccountSerializer
has_one :last_status, serializer: REST::StatusSerializer has_one :last_status, serializer: REST::StatusSerializer
def id
object.id.to_s
end
end end