mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-25 18:55:19 +02:00
fix type
This commit is contained in:
parent
0131c2a111
commit
fef859bd95
1 changed files with 2 additions and 2 deletions
|
|
@ -227,11 +227,11 @@ export class MongoDBJobsRepository implements IJobsRepository {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (filters.createdAfter) {
|
if (filters.createdAfter) {
|
||||||
query.createdAt = { ...query.createdAt, $gte: filters.createdAfter };
|
query.createdAt = { $gte: filters.createdAfter };
|
||||||
}
|
}
|
||||||
|
|
||||||
if (filters.createdBefore) {
|
if (filters.createdBefore) {
|
||||||
query.createdAt = { ...query.createdAt, $lte: filters.createdBefore };
|
query.createdAt = { $lte: filters.createdBefore };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue