Skip to content

Commit

Permalink
Merge pull request #55 from aligent/feature/allow_unchanged_full_export
Browse files Browse the repository at this point in the history
Change upload logic so that exports are allowed at the current version
  • Loading branch information
aligent-lturner authored Nov 27, 2024
2 parents 4e1a5d2 + 447da84 commit 99bc84d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/export/Cron/Upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function execute(): void
// do not upload any export behind the current version
$currentVersion = $this->getCurrentExportedVersion->execute();
if ($currentVersion > 0) {
$collection->addFieldToFilter(ExportInterface::FIELD_VERSION_ID, ['gt' => $currentVersion]);
$collection->addFieldToFilter(ExportInterface::FIELD_VERSION_ID, ['gteq' => $currentVersion]);
}
// order by the version number descending to get the latest export
$collection->setOrder(ExportInterface::FIELD_VERSION_ID);
Expand Down

0 comments on commit 99bc84d

Please sign in to comment.