Skip to content

Commit cf6d653

Browse files
authored
fix RediSearch SEPARATOR typo (#1824)
1 parent 4859aa7 commit cf6d653

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

packages/search/lib/commands/CREATE.spec.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,13 @@ describe('CREATE', () => {
106106
transformArguments('index', {
107107
field: {
108108
type: SchemaFieldTypes.TAG,
109-
SEPERATOR: 'separator'
109+
SEPARATOR: 'separator'
110110
}
111111
}),
112-
['FT.CREATE', 'index', 'SCHEMA', 'field', 'TAG', 'SEPERATOR', 'separator']
112+
['FT.CREATE', 'index', 'SCHEMA', 'field', 'TAG', 'SEPARATOR', 'separator']
113113
);
114114
});
115115

116-
117-
118116
it('with CASESENSITIVE', () => {
119117
assert.deepEqual(
120118
transformArguments('index', {

packages/search/lib/commands/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export function pushSchema(args: RedisCommandArguments, schema: CreateSchema) {
249249

250250
case 'TAG':
251251
if (fieldOptions.SEPARATOR) {
252-
args.push('SEPARATOR', fieldOptions.SEPERATOR);
252+
args.push('SEPARATOR', fieldOptions.SEPARATOR);
253253
}
254254

255255
if (fieldOptions.CASESENSITIVE) {

0 commit comments

Comments
 (0)