Skip to content

Commit 4b6f198

Browse files
Merge pull request #149 from RedisInsight/fix/RI-2142_workbench-telemetry-events
Fix/ Workbench Telemetry events
2 parents 042ac17 + aea8fa4 commit 4b6f198

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)