small bug fix for example code in SaaS JS doc (#770)

This commit is contained in:
QianZhu
2024-01-04 14:30:34 -08:00
committed by GitHub
parent 60b22d84bf
commit b83fbfc344

View File

@@ -75,7 +75,7 @@ const newData = [
{ id: 3, vector: [10.3, 1.9], item: "test1", price: 30.0 },
{ id: 4, vector: [6.2, 9.2], item: "test2", price: 40.0 }
]
table.add(newData)
await table.add(newData)
// create the index for the table
await table.createIndex({
metric_type: "L2",