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

Merge pull request #1288 from appwrite/fix-functions-conflicts

Updated sort method before containers cleanup
This commit is contained in:
Eldad A. Fux 2021-06-15 10:24:47 +03:00 committed by GitHub
commit 0d2a4f0cbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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