mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 16:38:32 +00:00
Merge pull request #1288 from appwrite/fix-functions-conflicts
Updated sort method before containers cleanup
This commit is contained in:
commit
0d2a4f0cbf
1 changed files with 1 additions and 1 deletions
|
|
@ -535,7 +535,7 @@ class FunctionsV1
|
|||
if(\count($list) > $max) {
|
||||
Console::info('Starting containers cleanup');
|
||||
|
||||
\usort($list, function ($item1, $item2) {
|
||||
\uasort($list, function ($item1, $item2) {
|
||||
return (int)($item1['appwrite-created'] ?? 0) <=> (int)($item2['appwrite-created'] ?? 0);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue