Skip to content

Commit

Permalink
Fix/修改commnet的删除bug (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Love-YeLin authored Apr 15, 2024
1 parent 2b276e8 commit e8a153f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions biz/application/service/relation.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"errors"
"fmt"
"github.com/CloudStriver/go-pkg/utils/pagination"
"github.com/CloudStriver/go-pkg/utils/pagination/mongop"
"github.com/CloudStriver/go-pkg/utils/pconvertor"
"github.com/CloudStriver/go-pkg/utils/util/log"
"github.com/CloudStriver/platform/biz/infrastructure/config"
Expand Down Expand Up @@ -161,7 +162,7 @@ func (s *RelationServiceImpl) GetRelations(ctx context.Context, req *platform.Ge
OnlyFromId: lo.ToPtr(o.FromFilterOptions.FromId),
OnlyToType: lo.ToPtr(o.FromFilterOptions.ToType),
OnlyRelationType: lo.ToPtr(req.RelationType),
}, p, sort.TimeCursorType); err != nil {
}, p, mongop.IdCursorType); err != nil {
return resp, err
}

Expand All @@ -178,7 +179,7 @@ func (s *RelationServiceImpl) GetRelations(ctx context.Context, req *platform.Ge
OnlyToId: lo.ToPtr(o.ToFilterOptions.ToId),
OnlyToType: lo.ToPtr(o.ToFilterOptions.ToType),
OnlyRelationType: lo.ToPtr(req.RelationType),
}, p, sort.TimeCursorType); err != nil {
}, p, mongop.IdCursorType); err != nil {
return resp, err
}

Expand Down

0 comments on commit e8a153f

Please sign in to comment.