Merge remote-tracking branch 'origin/1.5.x' into feat-add-messaging-response-models
This commit is contained in:
commit
1f9872b398
2 changed files with 0 additions and 29 deletions
|
@ -1861,17 +1861,6 @@ $commonCollections = [
|
|||
'array' => false,
|
||||
'filters' => [],
|
||||
],
|
||||
[
|
||||
'$id' => ID::custom('provider'),
|
||||
'type' => Database::VAR_STRING,
|
||||
'format' => '',
|
||||
'size' => Database::LENGTH_KEY,
|
||||
'signed' => true,
|
||||
'required' => false,
|
||||
'default' => null,
|
||||
'array' => false,
|
||||
'filters' => ['subQueryProvider'],
|
||||
],
|
||||
[
|
||||
'$id' => ID::custom('identifier'),
|
||||
'type' => Database::VAR_STRING,
|
||||
|
|
18
app/init.php
18
app/init.php
|
@ -544,24 +544,6 @@ Database::addFilter(
|
|||
}
|
||||
);
|
||||
|
||||
Database::addFilter(
|
||||
'subQueryProvider',
|
||||
function (mixed $value) {
|
||||
return null;
|
||||
},
|
||||
function (mixed $value, Document $document, Database $database) {
|
||||
$provider = Authorization::skip(fn () => $database
|
||||
->getDocument(
|
||||
'providers',
|
||||
$document->getAttribute('providerId'),
|
||||
));
|
||||
if (!$provider->isEmpty()) {
|
||||
return $provider;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
);
|
||||
|
||||
Database::addFilter(
|
||||
'subQueryTopicTargets',
|
||||
function (mixed $value) {
|
||||
|
|
Loading…
Reference in a new issue