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