From 7a60d5987f57544d0697d73d46ea3f233494892d Mon Sep 17 00:00:00 2001 From: Lachlan Turner Date: Tue, 26 Nov 2024 14:36:37 +1030 Subject: [PATCH] Fix check of statuses when triggering uploads --- src/export/Model/GetExportIsInProgress.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/export/Model/GetExportIsInProgress.php b/src/export/Model/GetExportIsInProgress.php index 4ed263f..fa79ba1 100644 --- a/src/export/Model/GetExportIsInProgress.php +++ b/src/export/Model/GetExportIsInProgress.php @@ -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; } }