mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Add skipFilters
This commit is contained in:
1 parent
2a147fe92e
commit
b91ca40922
1 file changed
+2
-2
@@ -37,10 +37,10 @@ class Targets
|
||||
$topicId = $subscriber->getAttribute('topicId');
|
||||
$topicInternalId = $subscriber->getAttribute('topicInternalId');
|
||||
|
||||
$topic = $database->findOne('topics', [
|
||||
$topic = $database->skipFilters(fn () => $database->findOne('topics', [
|
||||
Query::select(['$id', '$sequence']),
|
||||
Query::equal('$sequence', [$topicInternalId]),
|
||||
]);
|
||||
]), ['subQueryTopicTargets']);
|
||||
|
||||
if (!$topic->isEmpty()) {
|
||||
$totalAttribute = match ($target->getAttribute('providerType')) {
|
||||
|
||||
Reference in new issue
Block a user