mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Add missing provider filter for targets
This commit is contained in:
parent
a4134d1af1
commit
fe0af8e2cd
1 changed files with 2 additions and 0 deletions
|
|
@ -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