fix: [sync] publishing sharing group events fail to sync - fixed

- code cleanup removed related models, including remote org which is needed to check if the remote is to receive an event

- as reported by @treyka
pull/8277/head
iglocska 2022-03-24 15:36:11 +01:00
parent 086529ac16
commit 15820bb5af
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -4429,7 +4429,7 @@ class Event extends AppModel
}
$servers = $this->Server->find('all', [
'conditions' => $conditions,
'recursive' => -1,
'contain' => ['RemoteOrg', 'Organisation'],
'order' => ['Server.priority ASC', 'Server.id ASC'],
]);
// iterate over the servers and upload the event