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