1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +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', {
field: {
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', () => {
assert.deepEqual(
transformArguments('index', {

View File

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