chore: Use bang version of "find_or_create_by!" in Platform UsersController (#4248)

This commit is contained in:
Jordan Brough 2022-03-23 04:39:10 -06:00 committed by GitHub
parent f8c46341f6
commit 4a21633a2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@ class Platform::Api::V1::UsersController < PlatformController
@resource = (User.find_by(email: user_params[:email]) || User.new(user_params))
@resource.save!
@resource.confirm
@platform_app.platform_app_permissibles.find_or_create_by(permissible: @resource)
@platform_app.platform_app_permissibles.find_or_create_by!(permissible: @resource)
end
def login