Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Commit 47bb2ec

Browse files
removed unused
Signed-off-by: Prafulla Mahindrakar <prafulla.mahindrakar@gmail.com>
1 parent b0cde31 commit 47bb2ec

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

pkg/common/sorting.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ type SortParameter interface {
1717

1818
type sortParamImpl struct {
1919
gormOrderExpression string
20-
sortKey string
2120
}
2221

2322
func (s *sortParamImpl) GetGormOrderExpr() string {

pkg/repositories/gormimpl/named_entity_repo.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,8 @@ func getSubQueryJoin(db *gorm.DB, tableName string, input interfaces.ListNamedEn
3838

3939
// Apply consistent sort ordering.
4040
if input.SortParameter != nil {
41-
//identifierGroupByWithOrderKey := fmt.Sprintf("%s, %s, %s, %s", Project, Domain, Name, input.SortParameter.GetSortKey())
42-
//tx = tx.Group(identifierGroupByWithOrderKey)
4341
tx = tx.Order(input.SortParameter.GetGormOrderExpr())
4442
}
45-
//else {
46-
// tx = tx.Group(identifierGroupBy)
47-
//}
4843

4944
return db.Joins(fmt.Sprintf(joinString, input.ResourceType), tx)
5045
}

0 commit comments

Comments
 (0)