Remove unnecessary filter from time based query
Signed-off-by: Jussi Hallila <jussi@hallila.com>
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