1
0
mirror of https://github.com/redis/node-redis.git synced 2025-12-09 21:21:11 +03:00

Revert "fix(ts): xtrim threshold accepts string (#2828)"

This reverts commit 7d905c0027.
This commit is contained in:
Nikolay Karadzhov
2025-08-15 13:36:39 +03:00
committed by GitHub
parent 7d905c0027
commit 75d62674b1
2 changed files with 1 additions and 8 deletions

View File

@@ -38,13 +38,6 @@ describe('XTRIM', () => {
['XTRIM', 'key', 'MAXLEN', '=', '1', 'LIMIT', '1']
);
});
it('with MINID', () => {
assert.deepEqual(
XTRIM.transformArguments('key', 'MINID', '0-0'),
['XTRIM', 'key', 'MINID', '0-0']
);
});
});
testUtils.testAll('xTrim', async client => {

View File

@@ -12,7 +12,7 @@ export default {
transformArguments(
key: RedisArgument,
strategy: 'MAXLEN' | 'MINID',
threshold: number | string,
threshold: number,
options?: XTrimOptions
) {
const args = ['XTRIM', key, strategy];