Skip to content

Commit

Permalink
Sets default csv document query status to Deleted (#45)
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Sundberg <[email protected]>
  • Loading branch information
seansund authored Jun 12, 2024
1 parent 3a877af commit 06d86e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/csv-document/csv-document.mongodb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,8 @@ export class CsvDocumentMongodb implements CsvDocumentApi {

if (status) {
pipeline.push({$match: {status}})
} else {
pipeline.push({$match: {status: {$ne: CsvDocumentStatus.Deleted}}})
}

const dataFilter = pageSize === -1
Expand Down

0 comments on commit 06d86e3

Please sign in to comment.