Skip to content

Commit 51fe7a6

Browse files
author
Artem
committed
#RI-5449 fix overview total keys calculation
1 parent 05a398e commit 51fe7a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redisinsight/api/src/modules/database/providers/database-overview.provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class DatabaseOverviewProvider {
3535

3636
const currentDbIndex = isNumber(clientMetadata.db)
3737
? clientMetadata.db
38-
: get(client, ['options', 'db'], 0);
38+
: await client.getCurrentDbIndex();
3939

4040
if (client.getConnectionType() === RedisClientConnectionType.CLUSTER) {
4141
nodesInfo = await this.getNodesInfo(client);

0 commit comments

Comments
 (0)