This commit is contained in:
Yuri Kuznetsov
2024-02-10 19:14:03 +02:00
parent e8f07e0765
commit 1d3c0074d4
17 changed files with 136 additions and 201 deletions
+2
View File
@@ -172,6 +172,7 @@ class Queue
->limit(0, $batchSize)
->find();
/** @var ?Webhook $webhook */
$webhook = $this->entityManager->getEntityById(Webhook::ENTITY_TYPE, $webhookId);
if (!$webhook || !$webhook->get('isActive')) {
@@ -187,6 +188,7 @@ class Queue
$user = null;
if ($webhook->get('userId')) {
/** @var ?User $user */
$user = $this->entityManager->getEntity(User::ENTITY_TYPE, $webhook->get('userId'));
if (!$user) {