1
0
Fork 0
mirror of synced 2024-07-06 23:21:05 +12:00

Merge remote-tracking branch 'origin/feat-message-scheduling' into feat-maintenance-delete-expired-targets

This commit is contained in:
Jake Barnby 2024-01-17 15:06:36 +13:00
commit 828f214d0f
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -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);
}