mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Use buildQueries in reportIntegrations to honor resourceIds filter
This commit is contained in:
1 parent
c0a7d01de8
commit
4fc5fc3502
1 file changed
+6
-1
@@ -2228,8 +2228,13 @@ class Appwrite extends Source
|
||||
private function reportIntegrations(array $resources, array &$report, array $resourceIds = []): void
|
||||
{
|
||||
if (\in_array(Resource::TYPE_PLATFORM, $resources)) {
|
||||
$platformQueries = $this->buildQueries(
|
||||
resourceType: Resource::TYPE_PLATFORM,
|
||||
resourceIds: $resourceIds,
|
||||
limit: 1
|
||||
);
|
||||
try {
|
||||
$report[Resource::TYPE_PLATFORM] = $this->projectService->listPlatforms([Query::limit(1)])->total;
|
||||
$report[Resource::TYPE_PLATFORM] = $this->projectService->listPlatforms($platformQueries)->total;
|
||||
} catch (\Throwable) {
|
||||
$report[Resource::TYPE_PLATFORM] = 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user