Skip to content

Commit 75d6267

Browse files
authored
Revert "fix(ts): xtrim threshold accepts string (#2828)"
This reverts commit 7d905c0.
1 parent 7d905c0 commit 75d6267

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

packages/client/lib/commands/XTRIM.spec.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,6 @@ describe('XTRIM', () => {
3838
['XTRIM', 'key', 'MAXLEN', '=', '1', 'LIMIT', '1']
3939
);
4040
});
41-
42-
it('with MINID', () => {
43-
assert.deepEqual(
44-
XTRIM.transformArguments('key', 'MINID', '0-0'),
45-
['XTRIM', 'key', 'MINID', '0-0']
46-
);
47-
});
4841
});
4942

5043
testUtils.testAll('xTrim', async client => {

packages/client/lib/commands/XTRIM.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default {
1212
transformArguments(
1313
key: RedisArgument,
1414
strategy: 'MAXLEN' | 'MINID',
15-
threshold: number | string,
15+
threshold: number,
1616
options?: XTrimOptions
1717
) {
1818
const args = ['XTRIM', key, strategy];

0 commit comments

Comments
 (0)