@@ -234,7 +234,7 @@ func (r *Repository) LookupUserWithLogin(ctx context.Context, accountId string,
234
234
235
235
acct := allocAccount ()
236
236
acct .PublicId = accountId
237
- err = r .reader .LookupByPublicId (context . Background () , & acct )
237
+ err = r .reader .LookupByPublicId (ctx , & acct )
238
238
if err != nil {
239
239
return nil , errors .Wrap (ctx , err , op , errors .WithMsg (fmt .Sprintf ("unable to lookup account %s" , accountId )))
240
240
}
@@ -329,7 +329,7 @@ func (r *Repository) allowUserAutoVivify(ctx context.Context, acct *authAccount)
329
329
}
330
330
acctScope := AllocScope ()
331
331
acctScope .PublicId = acct .ScopeId
332
- err := r .reader .LookupByPublicId (context . Background () , & acctScope )
332
+ err := r .reader .LookupByPublicId (ctx , & acctScope )
333
333
if err != nil {
334
334
return false , errors .Wrap (ctx , err , op , errors .WithMsg (fmt .Sprintf ("unable to lookup account's scope %s" , acct .ScopeId )))
335
335
}
@@ -733,7 +733,7 @@ func dissociateUserFromAccounts(ctx context.Context, repoKms *kms.Kms, reader db
733
733
for _ , accountId := range accountIds {
734
734
acct := allocAccount ()
735
735
acct .PublicId = accountId
736
- err := reader .LookupByPublicId (context . Background () , & acct )
736
+ err := reader .LookupByPublicId (ctx , & acct )
737
737
if err != nil {
738
738
return errors .Wrap (ctx , err , op , errors .WithMsg (fmt .Sprintf ("unable to lookup account %s" , accountId )))
739
739
}
0 commit comments