1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

SEPARATOR typo fix (#1823)

* SEPARATOR typo fix

* SEPARATOR typo fix
This commit is contained in:
Nathan Němec
2022-01-12 14:16:47 +01:00
committed by GitHub
parent d34cb9c07b
commit 4859aa722d
2 changed files with 6 additions and 6 deletions

View File

@@ -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']
);
});

View File

@@ -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;
}>;
@@ -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) {