Fix overdue filter (#4262)

Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
Vyacheslav Tumanov
2023-12-25 20:51:04 +07:00
committed by GitHub
parent b522334f0e
commit 2f0f2e28ea
+1 -1
View File
@@ -104,7 +104,7 @@ export async function nestedDontMatchResult (filter: Filter, onUpdate: () => voi
}
export async function dateOutdated (filter: Filter): Promise<ObjQueryType<any>> {
return { $lt: new Date() }
return { $lt: Date.now() }
}
export async function dateToday (filter: Filter): Promise<ObjQueryType<any>> {