You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
fix TS.CREATERULE
This commit is contained in:
@@ -7,7 +7,7 @@ describe('CREATERULE', () => {
|
||||
it('transformArguments', () => {
|
||||
assert.deepEqual(
|
||||
transformArguments('source', 'destination', TimeSeriesAggregationType.AVARAGE, 1),
|
||||
['TS.CREATERULE', 'source', 'destination', 'avg', 1]
|
||||
['TS.CREATERULE', 'source', 'destination', 'AGGREGATION', 'avg', '1']
|
||||
);
|
||||
});
|
||||
|
||||
|
@@ -12,6 +12,7 @@ export function transformArguments(
|
||||
'TS.CREATERULE',
|
||||
sourceKey,
|
||||
destinationKey,
|
||||
'AGGREGATION',
|
||||
aggregationType,
|
||||
timeBucket.toString()
|
||||
];
|
||||
|
Reference in New Issue
Block a user