diff --git a/core/indexing/refreshIndex.ts b/core/indexing/refreshIndex.ts index ca8fd97eb..97bb0d2a3 100644 --- a/core/indexing/refreshIndex.ts +++ b/core/indexing/refreshIndex.ts @@ -165,12 +165,14 @@ async function getAddRemoveForTag( case AddRemoveResultType.Remove: await db.run( `DELETE FROM tag_catalog WHERE - path IN (?) AND + cacheKey = ? AND + path = ? AND dir = ? AND branch = ? AND artifactId = ? `, - remove.map((r) => `'${r.path}'`).join(", "), + cacheKey, + path, tag.directory, tag.branch, tag.artifactId