1
0
Fork 0
mirror of synced 2024-10-03 19:53:33 +13:00

Merge remote-tracking branch 'origin/1.5.x' into feat-add-messaging-response-models

This commit is contained in:
Jake Barnby 2023-09-12 15:40:25 -04:00
commit 1f9872b398
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C
2 changed files with 0 additions and 29 deletions

View file

@ -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,

View file

@ -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) {