chore: Move Facebook event processing to worker (#2988)

This commit is contained in:
Sojan Jose
2021-09-13 18:05:14 +05:30
committed by GitHub
parent 26a3150fd8
commit 328edd24de
7 changed files with 56 additions and 21 deletions

View File

@@ -2,10 +2,11 @@
FactoryBot.define do
factory :incoming_fb_text_message, class: Hash do
sender { { id: '3383290475046708' } }
recipient { { id: '117172741761305' } }
message { { mid: 'm_KXGKDUpO6xbVdAmZFBVpzU1AhKVJdAIUnUH4cwkvb_K3iZsWhowDRyJ_DcowEpJjncaBwdCIoRrixvCbbO1PcA', text: 'facebook message' } }
text { 'facebook message' }
messaging do
{ sender: { id: '3383290475046708' },
recipient: { id: '117172741761305' },
message: { mid: 'm_KXGKDUpO6xbVdAmZFBVpzU1AhKVJdAIUnUH4cwkvb_K3iZsWhowDRyJ_DcowEpJjncaBwdCIoRrixvCbbO1PcA', text: 'facebook message' } }
end
initialize_with { attributes }
end