Skip to content

Commit

Permalink
Merge pull request mautic#1093 from mautic-inc/MAUT-4640
Browse files Browse the repository at this point in the history
MAUT-4640: The field change log queue is not processed entirely during a single integration sync
  • Loading branch information
anton-vlasenko authored and escopecz committed Feb 23, 2024
1 parent 55b5ab7 commit 37b9a7e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ public function findChangesBefore(string $integration, string $objectType, \Date
)
->setParameter('integration', $integration)
->setParameter('objectType', $objectType)
->orderBy('f.modified_at'); // Newer updated fields must override older updated fields
// 1. We must sort by f.object_id. Otherwise values stored in PartialObjectReportBuilder::lastProcessedTrackedId will be incorrect.
// 2. Newer updated fields must override older updated fields
->orderBy('f.object_id, f.modified_at', 'ASC');

return $qb->executeQuery()->fetchAllAssociative();
}
Expand Down

0 comments on commit 37b9a7e

Please sign in to comment.