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, 'time' => $time,
'metric' => $metric, 'metric' => $metric,
'value' => $value, 'value' => $value,
'region' => App::getEnv('region', 'default'), 'region' => App::getEnv('_APP_REGION', 'default'),
'type' => 2, // these are cumulative metrics 'type' => 2, // these are cumulative metrics
])); ]));
} else { } else {

View file

@ -316,7 +316,7 @@ class TimeSeries extends Calculator
'metric' => $metric, 'metric' => $metric,
'value' => $value, 'value' => $value,
'type' => $type, 'type' => $type,
'region' => App::getEnv('region', 'default'), 'region' => App::getEnv('_APP_REGION', 'default'),
])); ]));
} else { } else {
$this->database->updateDocument( $this->database->updateDocument(