From b06cffac455db009f00804c0af355325472b5530 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Tue, 13 Aug 2024 14:37:06 +0545 Subject: [PATCH] trigger functions event only if event is not paused --- app/controllers/shared/api.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index 2b0013db29..099e4b4c2a 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -556,10 +556,11 @@ App::shutdown() /** * Trigger functions. */ - $queueForFunctions - ->from($queueForEvents) - ->trigger(); - + if (!$queueForEvents->isPaused()) { + $queueForFunctions + ->from($queueForEvents) + ->trigger(); + } /** * Trigger webhooks. */