0
0
Fork 0

Fix wrong route helper in encrypted messages controller (#13952)

And add `created_at` to encrypted message serializer
This commit is contained in:
Eugen Rochko 2020-06-03 20:32:15 +02:00 committed by GitHub
parent 77619b1654
commit f669b8bcce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -2,7 +2,8 @@
class REST::EncryptedMessageSerializer < ActiveModel::Serializer
attributes :id, :account_id, :device_id,
:type, :body, :digest, :message_franking
:type, :body, :digest, :message_franking,
:created_at
def id
object.id.to_s