chore: Use "destroy!" instead of "destroy" when not checking the return value (#4259)
This commit is contained in:
@@ -13,7 +13,7 @@ class Platform::Api::V1::AccountUsersController < PlatformController
|
||||
end
|
||||
|
||||
def destroy
|
||||
@resource.account_users.find_by(user_id: account_user_params[:user_id])&.destroy
|
||||
@resource.account_users.find_by(user_id: account_user_params[:user_id])&.destroy!
|
||||
head :ok
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user