Skip to content

Commit 05d0d13

Browse files
author
Roman.Sergeenko
committed
[pull/71] - fix pr comments
1 parent 84c49bd commit 05d0d13

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

redisinsight/ui/src/constants/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export enum CommandGroup {
6262
AI = 'ai'
6363
}
6464

65-
export enum CommandGroupsStartsWith {
65+
export enum CommandPrefix {
6666
AI = 'AI',
6767
Graph = 'GRAPH',
6868
TimeSeries = 'TS',

redisinsight/ui/src/utils/commands.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { flatten, isArray, isEmpty, reject } from 'lodash'
22
import {
33
CommandArgsType,
44
CommandGroup,
5-
CommandGroupsStartsWith,
5+
CommandPrefix,
66
ICommandArg,
77
ICommandArgGenerated
88
} from 'uiSrc/constants'
@@ -71,15 +71,15 @@ export const getDocUrlForCommand = (
7171
const commandStartsWith = commandName.split('.')[0]
7272

7373
switch (commandStartsWith) {
74-
case CommandGroupsStartsWith.Search:
74+
case CommandPrefix.Search:
7575
return `https://oss.redis.com/redisearch/Commands/#${command}`
76-
case CommandGroupsStartsWith.JSON:
76+
case CommandPrefix.JSON:
7777
return `https://oss.redis.com/redisjson/commands/#${command}`
78-
case CommandGroupsStartsWith.TimeSeries:
78+
case CommandPrefix.TimeSeries:
7979
return `https://oss.redis.com/redistimeseries/commands/#${command}`
80-
case CommandGroupsStartsWith.Graph:
80+
case CommandPrefix.Graph:
8181
return `https://oss.redis.com/redisgraph/commands/#${command}`
82-
case CommandGroupsStartsWith.AI:
82+
case CommandPrefix.AI:
8383
return `https://oss.redis.com/redisai/commands/#${command}`
8484
default:
8585
command = commandName.replace(/\s+/g, '-').toLowerCase()

0 commit comments

Comments
 (0)