Merge branch '1.9.x' into chore-migrate-audits-certificates-screenshots-to-publishers

This commit is contained in:
Chirag Aggarwal
2026-04-13 19:11:43 +05:30
committed by GitHub
+19
View File
@@ -53,4 +53,23 @@ class Execution extends Event
'execution' => $this->execution,
];
}
/**
* Trim payload for the execution event.
* Only the project ID is needed — the worker DI fetches the full project from the platform database.
*
* @return array
*/
protected function trimPayload(): array
{
$trimmed = [];
if ($this->project) {
$trimmed['project'] = new Document([
'$id' => $this->project->getId(),
]);
}
return $trimmed;
}
}