feat: optimise events payloads

This commit is contained in:
Christy Jacob
2025-01-16 11:35:22 +05:30
parent 2f83bec071
commit de6fced412
11 changed files with 50 additions and 62 deletions
+4 -1
View File
@@ -136,7 +136,10 @@ class Event
*/
public function setProject(Document $project): self
{
$this->project = $project;
$this->project = new Document([
'$id' => $project->getId(),
'$internalId' => $project->getInternalId()
]);
return $this;
}