Skip to content

Commit aea8fa4

Browse files
author
Artyom Podymov
committed
* #RI-2142 - fix WORKBENCH_COMMAND_ERROR_RECEIVED telemerty event
* #RI-2138 - fix WORKBENCH_CLIENT_CONNECTION_ERROR telemerty event
1 parent ec8fbb1 commit aea8fa4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

redisinsight/api/src/modules/cli/services/cli-business/cli-business.service.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ export class CliBusinessService {
149149
const replyEncoding = checkHumanReadableCommands(`${command} ${args[0]}`) ? 'utf8' : undefined;
150150
this.checkUnsupportedCommands(`${command} ${args[0]}`);
151151

152-
const reply = await this.cliTool.execCommand(clientOptions, command, args, replyEncoding);
153152
namespace = this.cliTool.getRedisClientNamespace(clientOptions);
153+
const reply = await this.cliTool.execCommand(clientOptions, command, args, replyEncoding);
154154

155155
this.logger.log('Succeed to execute redis CLI command.');
156156
this.cliAnalyticsService.sendCommandExecutedEvent(
@@ -225,6 +225,8 @@ export class CliBusinessService {
225225
const [command, ...args] = splitCliCommandLine(commandLine);
226226
const replyEncoding = checkHumanReadableCommands(`${command} ${args[0]}`) ? 'utf8' : undefined;
227227
this.checkUnsupportedCommands(`${command} ${args[0]}`);
228+
namespace = this.cliTool.getRedisClientNamespace(clientOptions);
229+
228230
const result = await this.cliTool.execCommandForNodes(
229231
clientOptions,
230232
command,
@@ -233,7 +235,6 @@ export class CliBusinessService {
233235
replyEncoding,
234236
);
235237

236-
namespace = this.cliTool.getRedisClientNamespace(clientOptions);
237238
return result.map((nodeExecReply) => {
238239
this.cliAnalyticsService.sendClusterCommandExecutedEvent(
239240
clientOptions.instanceId,

0 commit comments

Comments
 (0)