Use local zone for update executions

This commit is contained in:
Mattia Codato 2020-08-04 16:09:21 +02:00
parent c6c1849106
commit ac71cc67f8
1 changed files with 1 additions and 6 deletions

View File

@ -1115,12 +1115,7 @@ Value ClusterEvents::UpdateExecutionsAPIHandler(const MessageOrigin::Ptr& origin
updateMessage->Set("method", "event::UpdateExecutions");
updateMessage->Set("params", params);
Zone::Ptr localZone = Zone::GetLocalZone();
Zone::Ptr parentZone = localZone->GetParent();
if (localZone != parentZone) {
listener->RelayMessage(origin, parentZone, updateMessage, true);
}
listener->RelayMessage(origin, Zone::GetLocalZone(), updateMessage, true);
return Empty;
}