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()) {