Skip to content

Commit e034576

Browse files
Update refreshIndex.ts (continuedev#1866)
1 parent 589a87c commit e034576

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/indexing/refreshIndex.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ enum AddRemoveResultType {
121121
UpdateNewVersion = "updateNewVersion",
122122
UpdateOldVersion = "updateOldVersion",
123123
UpdateLastUpdated = "updateLastUpdated",
124-
Compute = "compute"
124+
Compute = "compute",
125125
}
126126

127127
async function getAddRemoveForTag(
@@ -451,7 +451,7 @@ export class GlobalCacheCodeBaseIndex implements CodebaseIndex {
451451
tag: IndexTag,
452452
): Promise<void> {
453453
await this.db.run(
454-
"INSERT INTO global_cache (cacheKey, dir, branch, artifactId) VALUES (?, ?, ?, ?)",
454+
"REPLACE INTO global_cache (cacheKey, dir, branch, artifactId) VALUES (?, ?, ?, ?)",
455455
cacheKey,
456456
tag.directory,
457457
tag.branch,

0 commit comments

Comments
 (0)