Chore: API to get conversations count (#808)

Addresses: #497
This commit is contained in:
Sojan Jose
2020-05-03 12:15:10 +05:30
committed by GitHub
parent d8131e450c
commit db6e3fb43e
4 changed files with 41 additions and 0 deletions

View File

@@ -8,6 +8,11 @@ class Api::V1::Accounts::ConversationsController < Api::BaseController
@conversations_count = result[:count]
end
def meta
result = conversation_finder.perform
@conversations_count = result[:count]
end
def create
@conversation = ::Conversation.create!(conversation_params)
end