From ce07c464f80f1cb6a3bead59bc9094f0feeb967b Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Tue, 30 Nov 2021 14:25:21 +0545 Subject: [PATCH] fix chunks --- 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 abb266ebe..6bd09a03b 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -498,7 +498,7 @@ App::post('/v1/functions/:functionId/tags') if(!$tag->isEmpty()) { $chunks = $tag->getAttribute('chunksTotal', 1); if($chunk == -1) { - $chunk = $chunks - 1; + $chunk = $chunks; } }