Commit 03e2d8ad authored by Ben Hayward's avatar Ben Hayward

updated variable name to better reflect value held

1 merge request!310[Sprint/ModestMonkey](feat): Added in pending boost limit for #591
Pipeline #80739607 passed with stages
in 13 minutes and 39 seconds
......@@ -298,10 +298,10 @@ class boost implements Interfaces\Api
}
if ($manager->isPendingLimitExceededBy($boost)) {
$maxDaily = Di::_()->get('Config')->get('max_pending_boosts');
$maxPending = Di::_()->get('Config')->get('max_pending_boosts');
return Factory::response([
'status' => 'error',
'message' => "Exceeded maximum of ".$maxDaily." pending boosts at a time."
'message' => "Exceeded maximum of ".$maxPending." pending boosts at a time."
]);
}
......
......@@ -171,8 +171,8 @@ class Manager
public function isPendingLimitExceededBy($boost)
{
$offchain = $this->getOffchainBoosts($boost, 4, 'review');
$maxDaily = $this->config->get('max_pending_boosts');
return count($offchain) >= $maxDaily;
$maxPending = $this->config->get('max_pending_boosts');
return count($offchain) >= $maxPending;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment