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) {
|
||||
query.createdAt = { ...query.createdAt, $gte: filters.createdAfter };
|
||||
query.createdAt = { $gte: filters.createdAfter };
|
||||
}
|
||||
|
||||
if (filters.createdBefore) {
|
||||
query.createdAt = { ...query.createdAt, $lte: filters.createdBefore };
|
||||
query.createdAt = { $lte: filters.createdBefore };
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue