1
0
Fork 0
mirror of synced 2024-06-10 06:44:45 +12:00

Updated sort method before cleanup

This commit is contained in:
Eldad Fux 2021-06-14 22:18:43 +03:00
parent 9346b5647b
commit 579a24cf73

View file

@ -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);
});