prevent loop when posting calendarrange to remote and updating remoteId

This commit is contained in:
2022-05-11 12:30:42 +02:00
parent e895da31d7
commit c892f7de7b
3 changed files with 27 additions and 14 deletions

View File

@@ -44,6 +44,7 @@ class CalendarRangeToRemoteHandler implements MessageHandlerInterface
$range = $this->calendarRangeRepository->find($calendarRangeMessage->getCalendarRangeId());
$this->remoteCalendarConnector->syncCalendarRange($range);
$range->preventEnqueueChanges = true;
$this->entityManager->flush();
}