Merge pull request #10652 from appwrite/fix-undefined-sequence

Fix undefined sequence
This commit is contained in:
Damodar Lohani
2025-10-16 10:34:37 +05:45
committed by GitHub
+1 -1
View File
@@ -428,7 +428,7 @@ class StatsUsage extends Action
/**
* Sort by unique index key reduce locks/deadlocks
*/
usort($projectStats['stats'], function ($a, $b) {
usort($projectStats['stats'], function ($a, $b) use ($sequence) {
// Metric DESC
$cmp = strcmp($b['metric'], $a['metric']);
if ($cmp !== 0) {