@haven-fi/solauto-sdk 1.0.268 → 1.0.269
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -340,7 +340,7 @@ class TransactionsManager {
|
|
|
340
340
|
...itemSets.slice(currentIndex + 1).flatMap((set) => set.items),
|
|
341
341
|
]);
|
|
342
342
|
if (newItemSets.length > 1) {
|
|
343
|
-
itemSets.splice(currentIndex
|
|
343
|
+
itemSets.splice(currentIndex, itemSets.length - currentIndex, ...newItemSets);
|
|
344
344
|
// const startOfQueuedStatuses = this.statuses.findIndex(x => x.status === TransactionStatus.Queued);
|
|
345
345
|
// this.statuses.splice(
|
|
346
346
|
// startOfQueuedStatuses,
|
|
@@ -351,7 +351,7 @@ class TransactionsManager {
|
|
|
351
351
|
// status: TransactionStatus.Queued,
|
|
352
352
|
// }))
|
|
353
353
|
// );
|
|
354
|
-
this.updateStatusForSets(newItemSets
|
|
354
|
+
this.updateStatusForSets(newItemSets);
|
|
355
355
|
}
|
|
356
356
|
return newItemSets[0];
|
|
357
357
|
}
|
package/package.json
CHANGED
|
@@ -527,9 +527,9 @@ export class TransactionsManager {
|
|
|
527
527
|
|
|
528
528
|
if (newItemSets.length > 1) {
|
|
529
529
|
itemSets.splice(
|
|
530
|
-
currentIndex
|
|
531
|
-
itemSets.length - currentIndex
|
|
532
|
-
...newItemSets
|
|
530
|
+
currentIndex,
|
|
531
|
+
itemSets.length - currentIndex,
|
|
532
|
+
...newItemSets
|
|
533
533
|
);
|
|
534
534
|
// const startOfQueuedStatuses = this.statuses.findIndex(x => x.status === TransactionStatus.Queued);
|
|
535
535
|
// this.statuses.splice(
|
|
@@ -541,7 +541,7 @@ export class TransactionsManager {
|
|
|
541
541
|
// status: TransactionStatus.Queued,
|
|
542
542
|
// }))
|
|
543
543
|
// );
|
|
544
|
-
this.updateStatusForSets(newItemSets
|
|
544
|
+
this.updateStatusForSets(newItemSets);
|
|
545
545
|
}
|
|
546
546
|
|
|
547
547
|
return newItemSets[0];
|