Commit 6dead061 authored by Emiliano Balbuena's avatar Emiliano Balbuena

(fix): Wrong state check when completing

1 merge request!235WIP: Boost Campaigns (&24)
Pipeline #72539963 passed with stages
in 9 minutes and 16 seconds
......@@ -471,7 +471,7 @@ class Manager
// Check state
if ($campaign->getDeliveryStatus() !== Campaign::CREATED_STATUS) {
if ($campaign->getDeliveryStatus() !== Campaign::APPROVED_STATUS) {
throw new CampaignException('Campaign should be in [approved] state in order to complete it');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment