chg: [server sync] update to the previous fix to include the recursive condition

- instead of just replacing the condition with the contain list, include both to get the performance gains back
pull/8277/head
iglocska 2022-03-24 16:11:29 +01:00
parent 7b13a1770b
commit 6cc19478d4
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 0 deletions

View File

@ -4429,6 +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'],
]);