Skip to content

Commit

Permalink
fix: returning duplicates of approved captures
Browse files Browse the repository at this point in the history
  • Loading branch information
gwynndp committed Oct 12, 2022
1 parent a6e2ae8 commit 90a0f8e
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 90a0f8e

Please sign in to comment.