1
0
Fork 0
mirror of synced 2024-06-14 00:34:51 +12:00

correct env value

This commit is contained in:
Damodar Lohani 2022-09-23 14:35:50 +05:45 committed by GitHub
parent e8b63f8c9d
commit 651ccef328
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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 {

View file

@ -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(