mirror of
https://github.com/paralus/paralus.git
synced 2026-08-24 15:47:19 +00:00
User GetM instead of GetByID when fetching user
This is necessary as we do not have `trash` in case of user and GetByID explects that column to be available.
This commit is contained in:
+1
-1
@@ -514,7 +514,7 @@ func (s *userService) GetByID(ctx context.Context, user *userv3.User) (*userv3.U
|
||||
if err != nil {
|
||||
return &userv3.User{}, err
|
||||
}
|
||||
entity, err := dao.GetByID(ctx, s.db, uid, &models.KratosIdentities{})
|
||||
entity, err := dao.GetM(ctx, s.db, map[string]interface{}{"id": uid}, &models.KratosIdentities{})
|
||||
if err != nil {
|
||||
return &userv3.User{}, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user