diff --git a/core/indexing/refreshIndex.ts b/core/indexing/refreshIndex.ts index db69c8725..2111bc9c1 100644 --- a/core/indexing/refreshIndex.ts +++ b/core/indexing/refreshIndex.ts @@ -121,7 +121,7 @@ enum AddRemoveResultType { UpdateNewVersion = "updateNewVersion", UpdateOldVersion = "updateOldVersion", UpdateLastUpdated = "updateLastUpdated", - Compute = "compute" + Compute = "compute", } async function getAddRemoveForTag( @@ -451,7 +451,7 @@ export class GlobalCacheCodeBaseIndex implements CodebaseIndex { tag: IndexTag, ): Promise { await this.db.run( - "INSERT INTO global_cache (cacheKey, dir, branch, artifactId) VALUES (?, ?, ?, ?)", + "REPLACE INTO global_cache (cacheKey, dir, branch, artifactId) VALUES (?, ?, ?, ?)", cacheKey, tag.directory, tag.branch,