mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
fix: use projectInternalId in the usage stats
This commit is contained in:
parent
c7f2785b45
commit
92a59cdf3f
1 changed files with 2 additions and 2 deletions
|
|
@ -489,7 +489,7 @@ class TimeSeries extends Calculator
|
|||
$query .= "WHERE \"time\" > '{$start}' ";
|
||||
$query .= "AND \"time\" < '{$end}' ";
|
||||
$query .= "AND \"metric_type\"='counter' {$filters} ";
|
||||
$query .= "GROUP BY time({$period['key']}), \"projectId\" {$groupBy} ";
|
||||
$query .= "GROUP BY time({$period['key']}), \"projectId\", \"projectInternalId\" {$groupBy} ";
|
||||
$query .= "FILL(null)";
|
||||
|
||||
try {
|
||||
|
|
@ -516,7 +516,7 @@ class TimeSeries extends Calculator
|
|||
}
|
||||
|
||||
$this->createOrUpdateMetric(
|
||||
$point['projectId'],
|
||||
$point['projectInternalId'],
|
||||
$point['time'],
|
||||
$period['key'],
|
||||
$metricUpdated,
|
||||
|
|
|
|||
Loading…
Reference in a new issue