Skip to content

Commit

Permalink
SEPARATOR typo fix (#1823)
Browse files Browse the repository at this point in the history
* SEPARATOR typo fix

* SEPARATOR typo fix
  • Loading branch information
dubblen committed Jan 12, 2022
1 parent d34cb9c commit 4859aa7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/search/lib/commands/CREATE.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ describe('CREATE', () => {
});
});

it('with SEPERATOR', () => {
it('with SEPARATOR', () => {
assert.deepEqual(
transformArguments('index', {
field: {
type: SchemaFieldTypes.TAG,
SEPERATOR: 'seperator'
SEPERATOR: 'separator'
}
}),
['FT.CREATE', 'index', 'SCHEMA', 'field', 'TAG', 'SEPERATOR', 'seperator']
['FT.CREATE', 'index', 'SCHEMA', 'field', 'TAG', 'SEPERATOR', 'separator']
);
});

Expand Down
6 changes: 3 additions & 3 deletions packages/search/lib/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ type CreateSchemaNumericField = CreateSchemaField<SchemaFieldTypes.NUMERIC>;
type CreateSchemaGeoField = CreateSchemaField<SchemaFieldTypes.GEO>;

type CreateSchemaTagField = CreateSchemaField<SchemaFieldTypes.TAG, {
SEPERATOR?: string;
SEPARATOR?: string;
CASESENSITIVE?: true;
}>;

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

case 'TAG':
if (fieldOptions.SEPERATOR) {
args.push('SEPERATOR', fieldOptions.SEPERATOR);
if (fieldOptions.SEPARATOR) {
args.push('SEPARATOR', fieldOptions.SEPERATOR);
}

if (fieldOptions.CASESENSITIVE) {
Expand Down

0 comments on commit 4859aa7

Please sign in to comment.