diff --git a/internal/store/postgres/user_repository.go b/internal/store/postgres/user_repository.go index 21955b962..4f4e59a09 100644 --- a/internal/store/postgres/user_repository.go +++ b/internal/store/postgres/user_repository.go @@ -673,7 +673,7 @@ func (r UserRepository) DeleteByEmail(ctx context.Context, email string, emailTa return err } if rowCount == 0 { - return sql.ErrNoRows + return user.ErrNotExist } return nil }); err != nil {