fixed loading keys in redis

This commit is contained in:
SPRINX0\prochazka
2025-05-12 10:28:28 +02:00
parent 8c1b51b7e9
commit 541af0b77e
4 changed files with 24 additions and 5 deletions

View File

@@ -260,7 +260,7 @@ const driver = {
extractKeysFromLevel(dbhan, root, keys) {
const prefix = root ? `${root}${dbhan.treeKeySeparator}` : '';
const rootSplit = _.compact(root.split(dbhan.treeKeySeparator));
const rootSplit = root == '' ? [] : root.split(dbhan.treeKeySeparator);
const res = {};
for (const key of keys) {
if (!key.startsWith(prefix)) continue;