File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,14 @@ public function execute(): void
3939 /** @var Collection $collection */
4040 $ collection = $ this ->collectionFactory ->create ();
4141 // need to check pending and uploaded exports only
42- $ collection ->addFieldToFilter (ExportInterface::FIELD_STATUS , ExportInterface::STATUS_PENDING );
43- $ collection ->addFieldToFilter (ExportInterface::FIELD_EXPORT_TYPE , ExportInterface::EXPORT_TYPE_INCREMENTAL );
42+ $ collection ->addFieldToFilter (
43+ ExportInterface::FIELD_STATUS ,
44+ ['in ' => [ExportInterface::STATUS_PENDING , ExportInterface::STATUS_UPLOADED ]]
45+ );
46+ $ collection ->addFieldToFilter (
47+ ExportInterface::FIELD_EXPORT_TYPE ,
48+ ['in ' => [ExportInterface::EXPORT_TYPE_INCREMENTAL , ExportInterface::EXPORT_TYPE_FULL ]]
49+ );
4450 /** @var Export[] $exports */
4551 $ exports = $ collection ->getItems ();
4652 foreach ($ exports as $ export ) {
You can’t perform that action at this time.
0 commit comments