Skip to content

Commit 8dfdfcb

Browse files
Merge pull request #10652 from appwrite/fix-undefined-sequence
Fix undefined sequence
2 parents 290a7b2 + b63c280 commit 8dfdfcb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Appwrite/Platform/Workers/StatsUsage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ public function commitToDb(callable $getProjectDB): void
428428
/**
429429
* Sort by unique index key reduce locks/deadlocks
430430
*/
431-
usort($projectStats['stats'], function ($a, $b) {
431+
usort($projectStats['stats'], function ($a, $b) use ($sequence) {
432432
// Metric DESC
433433
$cmp = strcmp($b['metric'], $a['metric']);
434434
if ($cmp !== 0) {

0 commit comments

Comments
 (0)