From 55356a0c64f598e02133357fa5db38f697efa721 Mon Sep 17 00:00:00 2001 From: lash Date: Tue, 14 Jan 2025 08:39:24 +0000 Subject: [PATCH] Remove userstore change with custodial event --- handlers/event/custodial.go | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/handlers/event/custodial.go b/handlers/event/custodial.go index dd51e9b..bcab999 100644 --- a/handlers/event/custodial.go +++ b/handlers/event/custodial.go @@ -27,7 +27,7 @@ func (eh *EventsUpdater) handleCustodialRegistration(ctx context.Context, ev any } func (eu *EventsUpdater) HandleCustodialRegistration(ctx context.Context, ev *apievent.EventCustodialRegistration) error { - pe, userStore, err := eu.getStore(ctx) + _, userStore, err := eu.getStore(ctx) if err != nil { return err } @@ -35,11 +35,13 @@ func (eu *EventsUpdater) HandleCustodialRegistration(ctx context.Context, ev *ap if err != nil { return err } - err = pe.Load(identity.SessionId) - if err != nil { - return err - } - st := pe.GetState() - st.SetFlag(accountCreatedFlag) - return pe.Save(identity.SessionId) +// err = pe.Load(identity.SessionId) +// if err != nil { +// return err +// } +// st := pe.GetState() +// st.SetFlag(accountCreatedFlag) +// return pe.Save(identity.SessionId) + logg.DebugCtxf(ctx, "received custodial registration event", "identity", identity) + return nil }