1
0
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:
Leibale
2023-07-27 11:32:10 -04:00
parent ff07bbf3d3
commit bfe5a8c881
2 changed files with 3 additions and 3 deletions

View File

@@ -16,6 +16,6 @@ describe('GRAPH.DELETE', () => {
client.graph.delete('key')
]);
assert.equal(reply, 'OK');
assert.equal(typeof reply, 'string');
}, GLOBAL.SERVERS.OPEN);
});

View File

@@ -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 {
FIRST_KEY_INDEX: 1,
@@ -6,5 +6,5 @@ export default {
transformArguments(key: RedisArgument) {
return ['GRAPH.DELETE', key];
},
transformReply: undefined as unknown as () => SimpleStringReply<'OK'>
transformReply: undefined as unknown as () => BlobStringReply
} as const satisfies Command;