fix(node/vectordb): parse value not key (#1276)

This commit is contained in:
Will Jones
2024-05-07 10:16:05 -07:00
committed by GitHub
parent 75ede86fab
commit a6babfa651
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ fn database_new(mut cx: FunctionContext) -> JsResult<JsPromise> {
for handle in storage_options_js {
let obj = handle.downcast::<JsArray, _>(&mut cx).unwrap();
let key = obj.get::<JsString, _, _>(&mut cx, 0)?.value(&mut cx);
let value = obj.get::<JsString, _, _>(&mut cx, 0)?.value(&mut cx);
let value = obj.get::<JsString, _, _>(&mut cx, 1)?.value(&mut cx);
storage_options.push((key, value));
}