You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
fix GRAPH.DELETE
This commit is contained in:
@@ -16,6 +16,6 @@ describe('GRAPH.DELETE', () => {
|
|||||||
client.graph.delete('key')
|
client.graph.delete('key')
|
||||||
]);
|
]);
|
||||||
|
|
||||||
assert.equal(reply, 'OK');
|
assert.equal(typeof reply, 'string');
|
||||||
}, GLOBAL.SERVERS.OPEN);
|
}, GLOBAL.SERVERS.OPEN);
|
||||||
});
|
});
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import { RedisArgument, SimpleStringReply, Command } from '@redis/client/dist/lib/RESP/types';
|
import { RedisArgument, BlobStringReply, Command } from '@redis/client/dist/lib/RESP/types';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
FIRST_KEY_INDEX: 1,
|
FIRST_KEY_INDEX: 1,
|
||||||
@@ -6,5 +6,5 @@ export default {
|
|||||||
transformArguments(key: RedisArgument) {
|
transformArguments(key: RedisArgument) {
|
||||||
return ['GRAPH.DELETE', key];
|
return ['GRAPH.DELETE', key];
|
||||||
},
|
},
|
||||||
transformReply: undefined as unknown as () => SimpleStringReply<'OK'>
|
transformReply: undefined as unknown as () => BlobStringReply
|
||||||
} as const satisfies Command;
|
} as const satisfies Command;
|
||||||
|
Reference in New Issue
Block a user