diff --git a/databox/api/src/Integration/ApiBudgetLimiter.php b/databox/api/src/Integration/ApiBudgetLimiter.php index 3a6eac7d1..4b25e2846 100644 --- a/databox/api/src/Integration/ApiBudgetLimiter.php +++ b/databox/api/src/Integration/ApiBudgetLimiter.php @@ -40,6 +40,10 @@ public function createLimiter(int $limit, string $policy, string $interval, stri */ public function acceptIntegrationApiCall(IntegrationConfig $config, int $tokens = 1): void { + if (!$config['budgetLimit']['enabled']) { + return; + } + $limiter = $this->createLimiter( $config['budgetLimit']['limit'], $config['budgetLimit']['policy'],