From d5a3879ede795865b5ad3b282da659b45d212f61 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Thu, 25 Mar 2021 16:41:56 +0100 Subject: [PATCH] clean up realtime even trigger in functions worker --- app/workers/functions.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/workers/functions.php b/app/workers/functions.php index 2a151d168..4aa46647e 100644 --- a/app/workers/functions.php +++ b/app/workers/functions.php @@ -488,13 +488,9 @@ class FunctionsV1 extends Worker $executionUpdate->trigger(); - $realtimeUpdate = new Realtime('', '', []); + $realtimeUpdate = new Realtime($projectId, 'functions.executions.update', $execution->getArrayCopy()); - $realtimeUpdate - ->setEvent('functions.executions.update') - ->setProject($projectId) - ->setPayload($execution->getArrayCopy()) - ->trigger(); + $realtimeUpdate->trigger(); $usage = new Event('v1-usage', 'UsageV1');