app/controllers/api/webhooks_controller.rb in infinum_id-1.0.0 vs app/controllers/api/webhooks_controller.rb in infinum_id-1.1.0
- old
+ new
@@ -11,10 +11,10 @@
def create_user_callback
return render_already_exists if user
user = User.create(user_params.merge(provider: params[:provider]))
- InfinumId::AfterUserUpdate.call(user, params[:user])
+ InfinumId::AfterUserCreate.call(user, params[:user])
render json: { user: 'created' }
end
private