From 579a24cf7361975d235f266135d57dd936027c0b Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Mon, 14 Jun 2021 22:18:43 +0300 Subject: [PATCH] Updated sort method before cleanup --- app/workers/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/workers/functions.php b/app/workers/functions.php index 8bf719e607..2485534657 100644 --- a/app/workers/functions.php +++ b/app/workers/functions.php @@ -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); });