Skip to content

Commit 4fc5fc3

Browse files
committed
Use buildQueries in reportIntegrations to honor resourceIds filter
1 parent c0a7d01 commit 4fc5fc3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/Migration/Sources/Appwrite.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2228,8 +2228,13 @@ private function exportSiteDeploymentData(Site $site, \Appwrite\Models\Deploymen
22282228
private function reportIntegrations(array $resources, array &$report, array $resourceIds = []): void
22292229
{
22302230
if (\in_array(Resource::TYPE_PLATFORM, $resources)) {
2231+
$platformQueries = $this->buildQueries(
2232+
resourceType: Resource::TYPE_PLATFORM,
2233+
resourceIds: $resourceIds,
2234+
limit: 1
2235+
);
22312236
try {
2232-
$report[Resource::TYPE_PLATFORM] = $this->projectService->listPlatforms([Query::limit(1)])->total;
2237+
$report[Resource::TYPE_PLATFORM] = $this->projectService->listPlatforms($platformQueries)->total;
22332238
} catch (\Throwable) {
22342239
$report[Resource::TYPE_PLATFORM] = 0;
22352240
}

0 commit comments

Comments
 (0)