1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

fix RediSearch SEPARATOR typo (#1824)

This commit is contained in:
Leibale Eidelman
2022-01-12 08:41:01 -05:00
committed by GitHub
parent 4859aa722d
commit cf6d653037
2 changed files with 3 additions and 5 deletions

View File

@@ -106,15 +106,13 @@ describe('CREATE', () => {
transformArguments('index', { transformArguments('index', {
field: { field: {
type: SchemaFieldTypes.TAG, type: SchemaFieldTypes.TAG,
SEPERATOR: 'separator' SEPARATOR: 'separator'
} }
}), }),
['FT.CREATE', 'index', 'SCHEMA', 'field', 'TAG', 'SEPERATOR', 'separator'] ['FT.CREATE', 'index', 'SCHEMA', 'field', 'TAG', 'SEPARATOR', 'separator']
); );
}); });
it('with CASESENSITIVE', () => { it('with CASESENSITIVE', () => {
assert.deepEqual( assert.deepEqual(
transformArguments('index', { transformArguments('index', {

View File

@@ -249,7 +249,7 @@ export function pushSchema(args: RedisCommandArguments, schema: CreateSchema) {
case 'TAG': case 'TAG':
if (fieldOptions.SEPARATOR) { if (fieldOptions.SEPARATOR) {
args.push('SEPARATOR', fieldOptions.SEPERATOR); args.push('SEPARATOR', fieldOptions.SEPARATOR);
} }
if (fieldOptions.CASESENSITIVE) { if (fieldOptions.CASESENSITIVE) {