Skip to content

Commit 4859aa7

Browse files
authored
SEPARATOR typo fix (#1823)
* SEPARATOR typo fix * SEPARATOR typo fix
1 parent d34cb9c commit 4859aa7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,15 @@ describe('CREATE', () => {
101101
});
102102
});
103103

104-
it('with SEPERATOR', () => {
104+
it('with SEPARATOR', () => {
105105
assert.deepEqual(
106106
transformArguments('index', {
107107
field: {
108108
type: SchemaFieldTypes.TAG,
109-
SEPERATOR: 'seperator'
109+
SEPERATOR: 'separator'
110110
}
111111
}),
112-
['FT.CREATE', 'index', 'SCHEMA', 'field', 'TAG', 'SEPERATOR', 'seperator']
112+
['FT.CREATE', 'index', 'SCHEMA', 'field', 'TAG', 'SEPERATOR', 'separator']
113113
);
114114
});
115115

packages/search/lib/commands/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ type CreateSchemaNumericField = CreateSchemaField<SchemaFieldTypes.NUMERIC>;
200200
type CreateSchemaGeoField = CreateSchemaField<SchemaFieldTypes.GEO>;
201201

202202
type CreateSchemaTagField = CreateSchemaField<SchemaFieldTypes.TAG, {
203-
SEPERATOR?: string;
203+
SEPARATOR?: string;
204204
CASESENSITIVE?: true;
205205
}>;
206206

@@ -248,8 +248,8 @@ export function pushSchema(args: RedisCommandArguments, schema: CreateSchema) {
248248
// break;
249249

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

255255
if (fieldOptions.CASESENSITIVE) {

0 commit comments

Comments
 (0)