diff --git a/src/endpoints/get_expiring_domains.rs b/src/endpoints/get_expiring_domains.rs index 3354201..4111d62 100644 --- a/src/endpoints/get_expiring_domains.rs +++ b/src/endpoints/get_expiring_domains.rs @@ -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 } },