Skip to content

Commit

Permalink
Merge pull request #239 from gwynndp/fix-duplicate-raw-captures
Browse files Browse the repository at this point in the history
Update raw-captures query to return distinct values
  • Loading branch information
dadiorchen authored Oct 26, 2022
2 parents ca723df + 90a0f8e commit 0f93ece
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/infra/database/RawCaptureRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ export default class RawCaptureRepository extends BaseRepository<RawCapture> {
`${this.tableName}.${sort?.order_by || 'created_at'}`,
sort?.order || 'desc',
)
.where((builder) => this.filterWhereBuilder(filter, builder));
.where((builder) => this.filterWhereBuilder(filter, builder))
.distinct();

const { limit, offset } = options;
if (limit) {
Expand Down

0 comments on commit 0f93ece

Please sign in to comment.