From 65a6b349a3f0fe3e2bee7a80f30decb41969d0a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Javier=20Ribo=CC=81=20Labrador?= Date: Tue, 19 Dec 2023 18:01:26 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20Allow=20creating=202=20instances=20of=20?= =?UTF-8?q?levelDB=20database=20by=20specifying=20different=20Level=20inte?= =?UTF-8?q?rnals,=20rather=20han=20using=20dbPath,=20or=20even=20combined.?= =?UTF-8?q?=20Signed-off-by:=20Francisco=20Javier=20Rib=C3=B3=20Labrador?= =?UTF-8?q?=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/leveldb/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/leveldb/src/index.ts b/packages/leveldb/src/index.ts index bafea59a..b1ad75e1 100644 --- a/packages/leveldb/src/index.ts +++ b/packages/leveldb/src/index.ts @@ -66,7 +66,7 @@ function getRxStorageLevel(settings: LevelDBSettings): RxStorageLevel }; const databasePath = "level" in levelDBConstructorProps ? - levelDBConstructorProps.level.path : + levelDBConstructorProps.level.db.location : levelDBConstructorProps.dbPath; const existingInstance = internalInstance.get(databasePath);