fix: Incorrect Scoping in Contact API (#1674)
This commit is contained in:
parent
12491fa8d5
commit
b4a547e0ae
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ class Api::V1::Accounts::ContactsController < Api::V1::Accounts::BaseController
|
|||
rescue ActiveRecord::RecordInvalid => e
|
||||
render json: {
|
||||
message: e.record.errors.full_messages.join(', '),
|
||||
contact: Contact.find_by(email: contact_params[:email])
|
||||
contact: Current.account.contacts.find_by(email: contact_params[:email])
|
||||
}, status: :unprocessable_entity
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue