Deleted non-relevant comments
This commit is contained in:
parent
d0fd81ce91
commit
df96ba2af7
|
@ -489,15 +489,6 @@ class FunctionsV1
|
|||
if(\count($list) > $max) {
|
||||
Console::info('Starting containers cleanup');
|
||||
|
||||
// $sorted = [];
|
||||
|
||||
// foreach($list as $env) {
|
||||
// $sorted[] = [
|
||||
// 'name' => $env['name'],
|
||||
// 'created' => (int)($env['appwrite-created'] ?? 0)
|
||||
// ];
|
||||
// }
|
||||
|
||||
\usort($list, function ($item1, $item2) {
|
||||
return (int)($item1['appwrite-created'] ?? 0) <=> (int)($item2['appwrite-created'] ?? 0);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue