Skip to content

Commit

Permalink
fix: update expiry filter to include current time in get_expiring_dom…
Browse files Browse the repository at this point in the history
…ains handler
  • Loading branch information
josephchimebuka committed Nov 28, 2024
1 parent f4f8895 commit a9ee11e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/endpoints/get_expiring_domains.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ pub async fn handler(
let pipeline = vec![
doc! {
"$match": {
"expiry": { "$lt": one_week_later },
"expiry": {
"$lt": one_week_later,
"$gt": current_time
},
"_cursor.to": null
}
},
Expand Down

0 comments on commit a9ee11e

Please sign in to comment.