mirror of
https://github.com/appwrite/appwrite
synced 2026-05-06 06:48:22 +00:00
Fix disabled metric check
This commit is contained in:
parent
390cdaa6a5
commit
6653972e11
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ class StatsUsage extends Event
|
|||
'project' => $this->getProject(),
|
||||
'reduce' => $this->reduce,
|
||||
'metrics' => \array_filter($this->metrics, function ($metric) {
|
||||
foreach (array_keys($this->disabled) as $disabledMetric) {
|
||||
foreach ($this->disabled as $disabledMetric) {
|
||||
if (\str_ends_with($metric['key'], $disabledMetric)) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue