Add skipFilters

This commit is contained in:
fogelito committed 2026-08-20 10:51:23 +03:00
1 parent 2a147fe92e
commit b91ca40922
1 file changed
+2 -2
+2 -2
View File
@@ -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')) {