From f3bd94b26ff560e7510dfd7ea816efe643d80cb9 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Thu, 6 Jan 2022 15:36:24 +0545 Subject: [PATCH] fix tags --- 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 58e77c2e58..9149bbff98 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -550,7 +550,7 @@ App::post('/v1/functions/:functionId/tags') 'search' => implode(' ', [$tagId, $command]), ])); } else { - $tag = $dbForProject->updateDocument('tags', $tagId, $tag->setAttribute('size', $size)); + $tag = $dbForProject->updateDocument('tags', $tagId, $tag->setAttribute('size', $fileSize)); } } else { if($tag->isEmpty()) {