@haven-fi/solauto-sdk 1.0.259 → 1.0.260
Sign up to get free protection for your applications and to get access to all the features.
@@ -340,12 +340,12 @@ class TransactionsManager {
|
|
340
340
|
...itemSets.slice(currentIndex + 1).flatMap((set) => set.items),
|
341
341
|
]);
|
342
342
|
if (newItemSets.length > 1) {
|
343
|
-
|
343
|
+
itemSets.splice(currentIndex + 1, itemSets.length - currentIndex - 1, ...newItemSets.slice(1));
|
344
|
+
this.statuses.splice(this.statusesStartIdx + currentIndex + 1, itemSets.length - currentIndex - 1, ...newItemSets.map(x => ({
|
344
345
|
name: x.name(),
|
346
|
+
attemptNum: 0,
|
345
347
|
status: TransactionStatus.Queued,
|
346
|
-
attemptNum: i === 0 ? attemptNum : 0,
|
347
348
|
})));
|
348
|
-
itemSets.splice(currentIndex + 1, itemSets.length - currentIndex - 1, ...newItemSets.slice(1));
|
349
349
|
this.updateStatusForSets(newItemSets.slice(1));
|
350
350
|
}
|
351
351
|
return newItemSets[0];
|
package/package.json
CHANGED
@@ -526,20 +526,20 @@ export class TransactionsManager {
|
|
526
526
|
]);
|
527
527
|
|
528
528
|
if (newItemSets.length > 1) {
|
529
|
-
this.statuses.splice(
|
530
|
-
this.statusesStartIdx + 1,
|
531
|
-
itemSets.length - 1,
|
532
|
-
...newItemSets.map((x, i) => ({
|
533
|
-
name: x.name(),
|
534
|
-
status: TransactionStatus.Queued,
|
535
|
-
attemptNum: i === 0 ? attemptNum : 0,
|
536
|
-
}))
|
537
|
-
);
|
538
529
|
itemSets.splice(
|
539
530
|
currentIndex + 1,
|
540
531
|
itemSets.length - currentIndex - 1,
|
541
532
|
...newItemSets.slice(1)
|
542
533
|
);
|
534
|
+
this.statuses.splice(
|
535
|
+
this.statusesStartIdx + currentIndex + 1,
|
536
|
+
itemSets.length - currentIndex - 1,
|
537
|
+
...newItemSets.map(x => ({
|
538
|
+
name: x.name(),
|
539
|
+
attemptNum: 0,
|
540
|
+
status: TransactionStatus.Queued,
|
541
|
+
}))
|
542
|
+
);
|
543
543
|
this.updateStatusForSets(newItemSets.slice(1));
|
544
544
|
}
|
545
545
|
|