diff --git a/src/Migration/Sources/Appwrite.php b/src/Migration/Sources/Appwrite.php index a7f4a6a..16fa9a5 100644 --- a/src/Migration/Sources/Appwrite.php +++ b/src/Migration/Sources/Appwrite.php @@ -237,7 +237,9 @@ public function report(array $resources = []): array $report[Resource::TYPE_DEPLOYMENT] = 0; $functions = $functionsClient->list()['functions']; foreach ($functions as $function) { - $report[Resource::TYPE_DEPLOYMENT] += $functionsClient->listDeployments($function['$id'], [Query::limit(1)])['total']; + if (!empty($function['deployment'])) { + $report[Resource::TYPE_DEPLOYMENT] += 1; + } } }