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

Fix undefined sequence
This commit is contained in:
Damodar Lohani authored and GitHub committed 2025-10-16 10:34:37 +05:45
commit 8dfdfcb522
1 file changed
+1 -1
+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) {