mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix, time was not being written to DB
This commit is contained in:
@@ -354,10 +354,11 @@ class StatsResources extends Action
|
||||
'period' => $period,
|
||||
'region' => $region,
|
||||
'value' => $value,
|
||||
'time' => $time,
|
||||
]);
|
||||
}
|
||||
} else {
|
||||
$time = 'inf' === $period ? null : \date($this->periods[$period], \time());
|
||||
$time = $period === 'inf' ? null : \date($this->periods[$period], \time());
|
||||
$id = \md5("{$time}_{$period}_{$metric}");
|
||||
$this->documents[] = new Document([
|
||||
'$id' => $id,
|
||||
@@ -365,6 +366,7 @@ class StatsResources extends Action
|
||||
'period' => $period,
|
||||
'region' => $region,
|
||||
'value' => $value,
|
||||
'time' => $time,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user