update => update!
This commit is contained in:
parent
22473adec7
commit
628be7c703
1 changed files with 2 additions and 2 deletions
|
@ -31,8 +31,8 @@ class AgentConnect::AgentController < ApplicationController
|
||||||
instructeur = user.instructeur
|
instructeur = user.instructeur
|
||||||
end
|
end
|
||||||
|
|
||||||
instructeur.update(agent_connect_id_token: id_token)
|
instructeur.update!(agent_connect_id_token: id_token)
|
||||||
instructeur.user.update(email_verified_at: Time.zone.now)
|
instructeur.user.update!(email_verified_at: Time.zone.now)
|
||||||
|
|
||||||
aci = AgentConnectInformation.find_or_initialize_by(instructeur:, sub: user_info['sub'])
|
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'))
|
aci.update(user_info.slice('given_name', 'usual_name', 'email', 'sub', 'siret', 'organizational_unit', 'belonging_population', 'phone'))
|
||||||
|
|
Loading…
Reference in a new issue