Merge pull request #15773 from RoadieHQ/remove-unnecessary-query-filter
Remove unnecessary filter from time based query
This commit is contained in:
@@ -205,9 +205,6 @@ export class TechInsightsDatabase implements TechInsightsStore {
|
||||
) {
|
||||
await tx<RawDbFactRow>('facts')
|
||||
.where({ id: factRetrieverId })
|
||||
.and.whereIn('entity', db =>
|
||||
db.distinct('entity').where({ id: factRetrieverId }),
|
||||
)
|
||||
.and.where('timestamp', '<', timestamp.toISO())
|
||||
.delete();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user