mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 12:35:59 +00:00
fixed loading keys in redis
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user