Skip to content

Commit

Permalink
Merge pull request #53 from aligent/fix/triggered_status_check
Browse files Browse the repository at this point in the history
Fix check of statuses when triggering uploads
  • Loading branch information
aligent-lturner authored Nov 26, 2024
2 parents 7b94906 + 7a60d59 commit 7a0cc30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/export/Model/GetExportIsInProgress.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function execute(bool $triggeredOnly = false): bool
/** @var Collection $collection */
$collection = $this->collectionFactory->create();
$statusesToCheck = $triggeredOnly ? [ExportInterface::STATUS_TRIGGERED] : self::IN_PROGRESS_STATUSES;
$collection->addFieldToFilter('status', ['in' => self::IN_PROGRESS_STATUSES]);
$collection->addFieldToFilter('status', ['in' => $statusesToCheck]);
return $collection->getSize() > 0;
}
}

0 comments on commit 7a0cc30

Please sign in to comment.