From f8d9a27d7a4c9035b56da034a61fe8690c4b9e74 Mon Sep 17 00:00:00 2001 From: givetimetolife <38744912+givetimetolife@users.noreply.github.com> Date: Tue, 1 Nov 2022 15:52:07 +0800 Subject: [PATCH] fix: db/seeds.rb field contact_inbox is undefined (#5743) fixes rails db:chatwoot_prepare error: field contact_inbox is undefined --- db/seeds.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/seeds.rb b/db/seeds.rb index ead862669..28fbad839 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -46,19 +46,19 @@ unless Rails.env.production? inbox = Inbox.create!(channel: web_widget, account: account, name: 'Acme Support') InboxMember.create!(user: user, inbox: inbox) - contact = ::ContactInboxWithContactBuilder.new( + contact_inbox = ::ContactInboxWithContactBuilder.new( source_id: user.id, inbox: inbox, hmac_verified: true, contact_attributes: { name: 'jane', email: 'jane@example.com', phone_number: '+2320000' } - ).perform&.contact + ).perform conversation = Conversation.create!( account: account, inbox: inbox, status: :open, assignee: user, - contact: contact, + contact: contact_inbox.contact, contact_inbox: contact_inbox, additional_attributes: {} )