chore: fix the failing user destroy for admin (#3223)
- fix the invitee association on the user - handle Instagram events with inbox missing
This commit is contained in:
@@ -78,7 +78,7 @@ class User < ApplicationRecord
|
||||
has_many :inbox_members, dependent: :destroy
|
||||
has_many :inboxes, through: :inbox_members, source: :inbox
|
||||
has_many :messages, as: :sender
|
||||
has_many :invitees, through: :account_users, class_name: 'User', foreign_key: 'inviter_id', dependent: :nullify
|
||||
has_many :invitees, through: :account_users, class_name: 'User', foreign_key: 'inviter_id', source: :inviter, dependent: :nullify
|
||||
|
||||
has_many :notifications, dependent: :destroy
|
||||
has_many :notification_settings, dependent: :destroy
|
||||
|
||||
Reference in New Issue
Block a user