From 7a097bdcbf3c9fb0c5cabe64597d24edafee1c9d Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Mon, 29 Jul 2024 12:17:40 -0700 Subject: [PATCH] Update refreshIndex.ts (#1866) --- core/indexing/refreshIndex.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,