Merge pull request #9442 from appwrite/fix-model-image-trans

fix: model for image transformations in usage project
This commit is contained in:
Christy Jacob 2025-03-05 10:21:05 +05:30 committed by GitHub
commit f250f454f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -197,13 +197,14 @@ class UsageProject extends Model
'example' => [],
'array' => true
])
->addRule('imageTransformationsTotal', [
'type' => self::TYPE_INTEGER,
'description' => 'An array of aggregated number of image transformations.',
'default' => 0,
'example' => 0,
])
->addRule('imageTransformations', [
'type' => Response::MODEL_METRIC,
'description' => 'An array of aggregated number of image transformations.',
'default' => [],
'example' => [],
'array' => true
])
->addRule('imageTransformationsTotal', [
'type' => self::TYPE_INTEGER,
'description' => 'Total aggregated number of image transformations.',
'default' => 0,