From 906de6a802b4bb7f37282207909af3225e637335 Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Fri, 2 Aug 2024 15:28:39 +0900 Subject: [PATCH] Fix queueForUsage not triggering for domain executions --- app/controllers/general.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controllers/general.php b/app/controllers/general.php index c89dd10917..bdd11115f8 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -318,6 +318,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', '');