Skip to content

Commit 563ce80

Browse files
authored
fix assignment user uid to UserQueryOpts (#5606)
1 parent 11ca817 commit 563ce80

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

controllers/pkg/database/cockroach/accountv2.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ func (c *Cockroach) GetUserUID(ops *types.UserQueryOpts) (uid uuid.UUID, err err
426426
if uid == uuid.Nil && !ops.IgnoreEmpty {
427427
return uuid.Nil, fmt.Errorf("failed to get userUID: record not found")
428428
}
429+
ops.UID = uid
429430
return uid, nil
430431
}
431432

0 commit comments

Comments
 (0)