Skip to content

Commit

Permalink
Fix check of statuses when triggering uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
aligent-lturner committed Nov 26, 2024
1 parent 7b94906 commit 7a60d59
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 7a60d59

Please sign in to comment.