From 6c49811d14f3cc0ce5c62c4706c587d528e7638f Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Tue, 22 Feb 2022 06:32:31 +0000 Subject: [PATCH] use deployment limit instead --- app/controllers/api/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index 47f8c4769..97a7fb173 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -489,7 +489,7 @@ App::post('/v1/functions/:functionId/deployments') $file = $request->getFiles('code'); $fileExt = new FileExt([FileExt::TYPE_GZIP]); - $fileSizeValidator = new FileSize(App::getEnv('_APP_STORAGE_LIMIT', 0)); + $fileSizeValidator = new FileSize(App::getEnv('_APP_FUNCTIONS_DEPLOYMENT_LIMIT', 0)); $upload = new Upload(); if (empty($file)) {