chore: Use bang version of "find_or_create_by!" in Platform UsersController (#4248)
This commit is contained in:
parent
f8c46341f6
commit
4a21633a2b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue