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
commit 8dfdfcb522
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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) {