From 18328596b8deb4176a13f7cee94d2ababbe8e8af Mon Sep 17 00:00:00 2001 From: Stojan Dimitrovski Date: Tue, 23 Apr 2024 14:01:52 +0200 Subject: [PATCH] feat: merge provider metadata on link account --- internal/api/external.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/api/external.go b/internal/api/external.go index 25a41890a..ab67d0d93 100644 --- a/internal/api/external.go +++ b/internal/api/external.go @@ -298,6 +298,10 @@ func (a *API) createAccountFromExternalIdentity(tx *storage.Connection, r *http. return nil, terr } + if terr = user.UpdateUserMetaData(tx, identityData); terr != nil { + return nil, terr + } + if terr = user.UpdateAppMetaDataProviders(tx); terr != nil { return nil, terr }