Skip to content

Commit

Permalink
Revert "Update report function to only count active functions"
Browse files Browse the repository at this point in the history
This reverts commit 4f9339a.
  • Loading branch information
PineappleIOnic committed May 17, 2024
1 parent 4f9339a commit 758e905
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Migration/Sources/Appwrite.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}
}

Expand Down

0 comments on commit 758e905

Please sign in to comment.