From 13634e74f0632bcf805b47113a57ec80ece22ded Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 11 Oct 2024 15:42:00 +0200 Subject: [webinterface] API: Check callbacks immediately on success This makes sure the web interface wont momentarily show outdated information. --- modules-available/webinterface/api.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules-available/webinterface/api.inc.php b/modules-available/webinterface/api.inc.php index e368b56d..0b4fabdb 100644 --- a/modules-available/webinterface/api.inc.php +++ b/modules-available/webinterface/api.inc.php @@ -36,4 +36,6 @@ if (Taskmanager::isFailed($task)) { ])); } -die('{"message":"OK"}'); \ No newline at end of file +echo '{"message":"OK"}'; +Trigger::checkCallbacks(); +exit; \ No newline at end of file -- cgit v1.2.3-55-g7522