Fix wrong route helper in encrypted messages controller (#13952)
And add `created_at` to encrypted message serializer
This commit is contained in:
1 parent
77619b1654
commit
f669b8bcce
2 files changed
+4
-3
No files matched your search
@@ -34,11 +34,11 @@ class Api::V1::Crypto::EncryptedMessagesController < Api::BaseController
|
||||
end
|
||||
|
||||
def next_path
|
||||
api_v1_encrypted_messages_url pagination_params(max_id: pagination_max_id) if records_continue?
|
||||
api_v1_crypto_encrypted_messages_url pagination_params(max_id: pagination_max_id) if records_continue?
|
||||
end
|
||||
|
||||
def prev_path
|
||||
api_v1_encrypted_messages_url pagination_params(min_id: pagination_since_id) unless @encrypted_messages.empty?
|
||||
api_v1_crypto_encrypted_messages_url pagination_params(min_id: pagination_since_id) unless @encrypted_messages.empty?
|
||||
end
|
||||
|
||||
def pagination_max_id
|
||||
|
||||
Reference in new issue
Block a user