Skip to content

Commit 06cba09

Browse files
committed
refactor: Change let to const for error variables in batch upsert
1 parent 44b3ab0 commit 06cba09

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib/qdrant.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ export async function batchUpsertVectors(
114114
logger.debug(`Batch upserted ${batch.length} points (total processed: ${Math.min(i + batchSize, points.length)})`);
115115
} catch (error) {
116116
const err = error instanceof Error ? error : new Error(String(error));
117-
let detailedErrorMessage = `Original error message: ${err.message}`;
118-
let errorDetailsPayload: Record<string, unknown> = {
117+
const detailedErrorMessage = `Original error message: ${err.message}`;
118+
const errorDetailsPayload: Record<string, unknown> = {
119119
collectionName,
120120
batchStartIndex: i,
121121
batchSize

0 commit comments

Comments
 (0)