Remove unnecessary filter from time based query

Signed-off-by: Jussi Hallila <jussi@hallila.com>
This commit is contained in:
Jussi Hallila
2023-01-16 15:11:49 +01:00
parent c5541cabd9
commit 444284448d
@@ -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();
}