fix: db/seeds.rb field contact_inbox is undefined (#5743)
fixes rails db:chatwoot_prepare error: field contact_inbox is undefined
This commit is contained in:
parent
92724576af
commit
f8d9a27d7a
1 changed files with 3 additions and 3 deletions
|
@ -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: {}
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue