From d7988563e5a4617c336bd06ff93b3291904399a4 Mon Sep 17 00:00:00 2001 From: Silvan Date: Fri, 8 Jul 2022 13:04:29 +0200 Subject: [PATCH] fix: update login names on user trigger bulk (#3934) --- internal/query/user.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/query/user.go b/internal/query/user.go index a4a4bea7d6..23b4adbe05 100644 --- a/internal/query/user.go +++ b/internal/query/user.go @@ -295,6 +295,7 @@ var ( func (q *Queries) GetUserByID(ctx context.Context, shouldTriggerBulk bool, userID string, queries ...SearchQuery) (*User, error) { if shouldTriggerBulk { projection.UserProjection.TriggerBulk(ctx) + projection.LoginNameProjection.TriggerBulk(ctx) } instanceID := authz.GetInstance(ctx).InstanceID() @@ -317,6 +318,7 @@ func (q *Queries) GetUserByID(ctx context.Context, shouldTriggerBulk bool, userI func (q *Queries) GetUser(ctx context.Context, shouldTriggerBulk bool, queries ...SearchQuery) (*User, error) { if shouldTriggerBulk { projection.UserProjection.TriggerBulk(ctx) + projection.LoginNameProjection.TriggerBulk(ctx) } instanceID := authz.GetInstance(ctx).InstanceID() @@ -389,6 +391,7 @@ func (q *Queries) GetHumanPhone(ctx context.Context, userID string, queries ...S func (q *Queries) GeNotifyUser(ctx context.Context, shouldTriggered bool, userID string, queries ...SearchQuery) (*NotifyUser, error) { if shouldTriggered { projection.UserProjection.TriggerBulk(ctx) + projection.LoginNameProjection.TriggerBulk(ctx) } instanceID := authz.GetInstance(ctx).InstanceID()