From 1b42033cdafdc254d07d00f97d416bf755d2ad9f Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Tue, 25 Jan 2022 04:54:44 +0400 Subject: [PATCH] feat: fix response model, generate console SDK --- app/controllers/api/functions.php | 2 + app/views/console/functions/function.phtml | 4 +- public/dist/scripts/app-all.js | 51 +-- public/dist/scripts/app-dep.js | 51 +-- public/scripts/dependencies/appwrite.js | 404 +++++++++++---------- src/Appwrite/Utopia/Response.php | 2 +- 6 files changed, 261 insertions(+), 253 deletions(-) diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index b53396c11f..fbccf7dd89 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -684,6 +684,8 @@ App::get('/v1/functions/:functionId/deployments') $deployment['buildStderr'] = $build->getAttribute('stderr', ''); } + var_dump($results); + $response->dynamic(new Document([ 'deployments' => $results, 'sum' => $sum, diff --git a/app/views/console/functions/function.phtml b/app/views/console/functions/function.phtml index 65540bb93b..929adaedf0 100644 --- a/app/views/console/functions/function.phtml +++ b/app/views/console/functions/function.phtml @@ -177,7 +177,7 @@ $usageStatsEnabled = $this->getParam('usageStatsEnabled', true);
- +
@@ -632,7 +632,7 @@ $usageStatsEnabled = $this->getParam('usageStatsEnabled', true);