mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
correct env value
This commit is contained in:
@@ -96,7 +96,7 @@ class Database extends Calculator
|
||||
'time' => $time,
|
||||
'metric' => $metric,
|
||||
'value' => $value,
|
||||
'region' => App::getEnv('region', 'default'),
|
||||
'region' => App::getEnv('_APP_REGION', 'default'),
|
||||
'type' => 2, // these are cumulative metrics
|
||||
]));
|
||||
} else {
|
||||
|
||||
@@ -316,7 +316,7 @@ class TimeSeries extends Calculator
|
||||
'metric' => $metric,
|
||||
'value' => $value,
|
||||
'type' => $type,
|
||||
'region' => App::getEnv('region', 'default'),
|
||||
'region' => App::getEnv('_APP_REGION', 'default'),
|
||||
]));
|
||||
} else {
|
||||
$this->database->updateDocument(
|
||||
|
||||
Reference in New Issue
Block a user