fix: use JS naming convention in new index stats fields (#1377)

Changes new index stats fields in node client from snake case to camel
case.
This commit is contained in:
Ryan Green
2024-06-10 16:41:31 -02:30
committed by GitHub
parent 96914a619b
commit 8e348ab4bd
2 changed files with 6 additions and 6 deletions

View File

@@ -712,9 +712,9 @@ export interface VectorIndex {
export interface IndexStats {
numIndexedRows: number | null
numUnindexedRows: number | null
index_type: string | null
distance_type: string | null
completed_at: string | null
indexType: string | null
distanceType: string | null
completedAt: string | null
}
/**

View File

@@ -522,9 +522,9 @@ export class RemoteTable<T = number[]> implements Table<T> {
return {
numIndexedRows: body?.num_indexed_rows,
numUnindexedRows: body?.num_unindexed_rows,
index_type: body?.index_type,
distance_type: body?.distance_type,
completed_at: body?.completed_at
indexType: body?.index_type,
distanceType: body?.distance_type,
completedAt: body?.completed_at
}
}