Use buildQueries in reportIntegrations to honor resourceIds filter

This commit is contained in:
Prem Palanisamy committed 2026-05-14 05:21:35 +01:00
1 parent c0a7d01de8
commit 4fc5fc3502
1 file changed
+6 -1
+6 -1
View File
@@ -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;
}