Skip to content

Commit 92e2d8d

Browse files
author
Artem
committed
#RI-4421,#RI-4424 use pipeline.call to not fail with cannot apply command
1 parent bac5482 commit 92e2d8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

redisinsight/api/src/modules/bulk-actions/bulk-import.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ export class BulkImportService {
3737
}
3838
}));
3939
} else {
40-
(await client.pipeline(batch).exec()).forEach(([err]) => {
40+
const commands = batch.map(([cmd, args]) => ['call', cmd, ...args]);
41+
(await client.pipeline(commands).exec()).forEach(([err]) => {
4142
if (err) {
4243
result.addFailed(1);
4344
} else {

0 commit comments

Comments
 (0)