more indexing fixes
This commit is contained in:
parent
b7ca371d57
commit
65ffdde112
2 changed files with 2 additions and 2 deletions
|
|
@ -240,7 +240,7 @@ export class CodeSnippetsCodebaseIndex implements CodebaseIndex {
|
|||
for (let i = 0; i < results.removeTag.length; i++) {
|
||||
const removeTag = results.removeTag[i];
|
||||
|
||||
const snippets = await db.get(
|
||||
let snippets = await db.get(
|
||||
`SELECT id FROM code_snippets
|
||||
WHERE cacheKey = ? AND path = ?`,
|
||||
[removeTag.cacheKey, removeTag.path],
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ async function getAddRemoveForTag(
|
|||
break;
|
||||
case AddRemoveResultType.Add:
|
||||
await db.run(
|
||||
"INSERT INTO tag_catalog (path, cacheKey, lastUpdated, dir, branch, artifactId) VALUES (?, ?, ?, ?, ?, ?)",
|
||||
"REPLACE INTO tag_catalog (path, cacheKey, lastUpdated, dir, branch, artifactId) VALUES (?, ?, ?, ?, ?, ?)",
|
||||
path,
|
||||
cacheKey,
|
||||
newLastUpdatedTimestamp,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue