Skip to content

Commit

Permalink
Revert "fix: add DISTINCT clause to ensure no duplicates (#611)" (#612)
Browse files Browse the repository at this point in the history
This reverts commit 464619c.
  • Loading branch information
nmcharlton authored Jan 4, 2022
1 parent 5c91bc0 commit 623d1d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/repositories/trees.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class TreesRepository extends DefaultCrudRepository<
.buildColumnNames('Trees', filter)
.replace('"id"', 'trees.id as "id"');

const selectStmt = `SELECT DISTINCT ${columnNames} from trees ${this.getTreeTagJoinClause(
const selectStmt = `SELECT ${columnNames} from trees ${this.getTreeTagJoinClause(
tagId,
)}`;

Expand Down Expand Up @@ -177,7 +177,7 @@ export class TreesRepository extends DefaultCrudRepository<
}

try {
const selectStmt = `SELECT COUNT(DISTINCT *) FROM trees ${this.getTreeTagJoinClause(
const selectStmt = `SELECT COUNT(*) FROM trees ${this.getTreeTagJoinClause(
tagId,
)}`;

Expand Down

0 comments on commit 623d1d0

Please sign in to comment.