Routine weeding of the codebase (#163)

* Routine weeding of the codebase
* fix the spec
This commit is contained in:
Sojan Jose 2019-10-20 16:19:12 +05:30 committed by GitHub
parent 94c6d6db6f
commit 2099dc01a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 228 additions and 244 deletions

View file

@ -28,14 +28,14 @@ class Integrations::Facebook::MessageCreator
end
def create_outgoing_message
FacebookPage.where(page_id: response.sender_id).each do |page|
Channel::FacebookPage.where(page_id: response.sender_id).each do |page|
mb = Messages::Outgoing::EchoBuilder.new(response, page.inbox, true)
mb.perform
end
end
def create_incoming_message
FacebookPage.where(page_id: response.recipient_id).each do |page|
Channel::FacebookPage.where(page_id: response.recipient_id).each do |page|
mb = Messages::IncomingMessageBuilder.new(response, page.inbox)
mb.perform
end