Merge pull request #15773 from RoadieHQ/remove-unnecessary-query-filter

Remove unnecessary filter from time based query
This commit is contained in:
Fredrik Adelöw
2023-01-17 11:27:59 +01:00
committed by GitHub
@@ -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();
}