fix console namespace
This commit is contained in:
parent
27c4e24fa5
commit
e5db5cb4bb
2 changed files with 2 additions and 2 deletions
|
@ -132,7 +132,7 @@ class Database extends Calculator
|
|||
$results = [];
|
||||
$sum = $limit;
|
||||
$latestDocument = null;
|
||||
$this->database->setNamespace('_' . $projectId);
|
||||
$this->database->setNamespace($projectId === 'console' ? $projectId : '_' . $projectId);
|
||||
|
||||
while ($sum === $limit) {
|
||||
try {
|
||||
|
|
|
@ -301,7 +301,7 @@ class TimeSeries extends Calculator
|
|||
private function createOrUpdateMetric(string $projectId, string $time, string $period, string $metric, int $value, int $type): void
|
||||
{
|
||||
$id = \md5("{$time}_{$period}_{$metric}");
|
||||
$this->database->setNamespace('_console');
|
||||
$this->database->setNamespace('console');
|
||||
$project = $this->database->getDocument('projects', $projectId);
|
||||
$this->database->setNamespace('_' . $project->getInternalId());
|
||||
|
||||
|
|
Loading…
Reference in a new issue