Merge remote-tracking branch 'origin/feat-message-scheduling' into feat-maintenance-delete-expired-targets
This commit is contained in:
commit
828f214d0f
1 changed files with 2 additions and 0 deletions
|
@ -123,6 +123,8 @@ class Messaging extends Action
|
|||
Query::equal('$id', $targetIds),
|
||||
Query::limit(\count($targetIds)),
|
||||
]);
|
||||
$targets = \array_filter($targets, fn(Document $target) =>
|
||||
$target->getAttribute('providerType') === $message->getAttribute('providerType'));
|
||||
$recipients = \array_merge($recipients, $targets);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue