From 628be7c7037e1e00494d6f1021f633cf266e2d48 Mon Sep 17 00:00:00 2001 From: Mathieu Magnin Date: Fri, 6 Sep 2024 15:37:33 +0200 Subject: [PATCH] update => update! --- app/controllers/agent_connect/agent_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/agent_connect/agent_controller.rb b/app/controllers/agent_connect/agent_controller.rb index 510edf5a9..346c19a8d 100644 --- a/app/controllers/agent_connect/agent_controller.rb +++ b/app/controllers/agent_connect/agent_controller.rb @@ -31,8 +31,8 @@ class AgentConnect::AgentController < ApplicationController instructeur = user.instructeur end - instructeur.update(agent_connect_id_token: id_token) - instructeur.user.update(email_verified_at: Time.zone.now) + instructeur.update!(agent_connect_id_token: id_token) + instructeur.user.update!(email_verified_at: Time.zone.now) aci = AgentConnectInformation.find_or_initialize_by(instructeur:, sub: user_info['sub']) aci.update(user_info.slice('given_name', 'usual_name', 'email', 'sub', 'siret', 'organizational_unit', 'belonging_population', 'phone'))