Skip to content

Commit

Permalink
fix(audit): Fixed find() query for expired audits (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Oct 30, 2023
1 parent aae91bb commit 48b9efb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/audit-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ class AuditHandler {
let expiredAudits = await this.database
.collection('audits')
.find({
expires: { $lt: new Date(), deleted: false }
expires: { $lt: new Date() },
deleted: false
})
.toArray();

Expand Down

0 comments on commit 48b9efb

Please sign in to comment.