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: {} )