Fix overdue filter (#4262)

Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
Vyacheslav Tumanov 2023-12-25 18:51:04 +05:00 committed by GitHub
parent b522334f0e
commit 2f0f2e28ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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>> {