Merge branch 'fix-limit-failed-webhook-attempts' of github.com:appwrite/appwrite into fix-limit-failed-webhook-attempts
This commit is contained in:
commit
5eea695921
2 changed files with 5 additions and 1 deletions
|
@ -240,7 +240,10 @@ $worker
|
|||
->inject('error')
|
||||
->inject('logger')
|
||||
->inject('log')
|
||||
->action(function (Throwable $error, ?Logger $logger, Log $log) use ($queueName) {
|
||||
->inject('pools')
|
||||
->action(function (Throwable $error, ?Logger $logger, Log $log, Group $pools) use ($queueName) {
|
||||
$pools->reclaim();
|
||||
|
||||
$version = App::getEnv('_APP_VERSION', 'UNKNOWN');
|
||||
|
||||
if ($error instanceof PDOException) {
|
||||
|
|
|
@ -49,6 +49,7 @@ class Webhooks extends Action
|
|||
*/
|
||||
public function action(Message $message, Database $dbForConsole, Mail $queueForMails, Log $log): void
|
||||
{
|
||||
$this->errors = [];
|
||||
$payload = $message->getPayload() ?? [];
|
||||
|
||||
if (empty($payload)) {
|
||||
|
|
Loading…
Reference in a new issue