Skip to content

Commit

Permalink
Merge commit 'refs/pull/487/head' of github.com:alchemy-fr/phraseanet…
Browse files Browse the repository at this point in the history
…-services into w2445
  • Loading branch information
nmaillat committed Nov 16, 2024
2 parents 990db79 + ccc4516 commit 1138af0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions databox/api/src/Integration/ApiBudgetLimiter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit 1138af0

Please sign in to comment.