Skip to content

Commit

Permalink
It should not be possible to reset an upload request when the state i…
Browse files Browse the repository at this point in the history
…s processing
  • Loading branch information
loevgaard committed Sep 9, 2024
1 parent ee478e2 commit 5e56de6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Workflow/UploadOrderRequestWorkflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public static function getTransitions(): array
),
new Transition(
self::TRANSITION_RESET,
[UploadOrderRequestInterface::STATE_FAILED, UploadOrderRequestInterface::STATE_UPLOADED, UploadOrderRequestInterface::STATE_PROCESSING],
[UploadOrderRequestInterface::STATE_FAILED, UploadOrderRequestInterface::STATE_UPLOADED],
UploadOrderRequestInterface::STATE_PENDING,
),
];
Expand Down
2 changes: 1 addition & 1 deletion src/Workflow/UploadProductVariantRequestWorkflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public static function getTransitions(): array
),
new Transition(
self::TRANSITION_RESET,
[UploadProductVariantRequestInterface::STATE_PENDING, UploadProductVariantRequestInterface::STATE_FAILED, UploadProductVariantRequestInterface::STATE_UPLOADED, UploadProductVariantRequestInterface::STATE_PROCESSING],
[UploadProductVariantRequestInterface::STATE_PENDING, UploadProductVariantRequestInterface::STATE_FAILED, UploadProductVariantRequestInterface::STATE_UPLOADED],
UploadProductVariantRequestInterface::STATE_PENDING,
),
];
Expand Down

0 comments on commit 5e56de6

Please sign in to comment.