@equationalapplications/core-llm-wiki 5.1.0 → 5.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3795,10 +3795,10 @@ var MaintenanceService = class {
3795
3795
  const validNewFacts = newFacts.map(validateFact).filter((f) => f !== null);
3796
3796
  const insertedFacts = [];
3797
3797
  const uniqueDeletedFactIds = Array.from(new Set(safeDeleted));
3798
- const healFactsForDedupe = (await this.entryRepo.findInferredTitlesByEntityId(entityId)).filter((f) => !safeDeletedSet.has(f.id));
3799
3798
  await this.db.withTransactionAsync(async (tx) => {
3800
3799
  await this.entryRepo.downgradeByIds(safeDowngraded, entityId, tx);
3801
3800
  await this.entryRepo.softDeleteByIds(safeDeleted, entityId, tx);
3801
+ const healFactsForDedupe = await this.entryRepo.findInferredTitlesByEntityId(entityId, tx);
3802
3802
  for (const fact of validNewFacts) {
3803
3803
  const newTokens = titleTokens(fact.title);
3804
3804
  let skip = false;