You've already forked node-redis
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:
@@ -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', {
|
||||||
|
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user