From 0d2b1a31ddcf927aa7b3c0c1c6c8fa2ee7d6f6ff Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Fri, 2 Aug 2024 15:24:25 +0900 Subject: [PATCH] Fix executions not being tracked in metrics --- app/controllers/general.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controllers/general.php b/app/controllers/general.php index 92ddec58f5..86efd56219 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -316,6 +316,10 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo /** @var Document $execution */ $execution = Authorization::skip(fn () => $dbForProject->createDocument('executions', $execution)); } + + $queueForUsage + ->setProject($project) + ->trigger(); } $execution->setAttribute('logs', '');