Update refreshIndex.ts (#1866)

This commit is contained in:
Patrick Erichsen 2024-07-29 12:17:40 -07:00 • committed by GitHub
parent dd32daf21a
commit 7a097bdcbf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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<void> {
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,