From 377aeb8087a23613e9899cd17dfc17d86e8298d2 Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Thu, 8 Feb 2024 15:47:31 +0530 Subject: [PATCH] chore: fix specs --- app/models/channel/facebook_page.rb | 2 -- app/models/contact.rb | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/models/channel/facebook_page.rb b/app/models/channel/facebook_page.rb index 8bb84e6dc..e4136109a 100644 --- a/app/models/channel/facebook_page.rb +++ b/app/models/channel/facebook_page.rb @@ -42,8 +42,6 @@ class Channel::FacebookPage < ApplicationRecord first_name = name_parts[:first_name] last_name = name_parts[:last_name] @contact_inbox = ::ContactInboxWithContactBuilder.new({ - name: first_name, - last_name: last_name, source_id: instagram_id, inbox: inbox, contact_attributes: { name: first_name, last_name: last_name } diff --git a/app/models/contact.rb b/app/models/contact.rb index af3f605a7..098f21a62 100644 --- a/app/models/contact.rb +++ b/app/models/contact.rb @@ -35,6 +35,9 @@ # rubocop:enable Layout/LineLength +# Notes +# TODO: We are considering the "name" as "first_name". We will update it to "first_name" in the future. + class Contact < ApplicationRecord include Avatarable include AvailabilityStatusable