From 1574bfdc9a2d5405cd34d61b28e73ee2bf328f9b Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Thu, 1 Aug 2024 18:40:36 +0900 Subject: [PATCH] Update functions.php --- app/controllers/api/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index ef574f70a7..0b0c73065e 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -467,7 +467,7 @@ App::get('/v1/functions/specifications') foreach ($allRuntimeSpecs as $spec) { $spec['enabled'] = true; - $hooks->trigger('specificationsHandler', [$plan, &$spec]); + $spec = $hooks->trigger('specificationsHandler', [$plan, &$spec]) ?? $spec; // Only add specs that are within the limits set by environment variables if ($spec['cpus'] <= System::getEnv('_APP_FUNCTIONS_CPUS', 1) && $spec['memory'] <= System::getEnv('_APP_FUNCTIONS_MEMORY', 512)) {