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:
Abin Simon
2022-06-10 09:04:26 +05:30
parent 4a38e1ee9a
commit 38f937bfcf
+1 -1
View File
@@ -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
}