Update app/controllers/api/avatars.php

Co-authored-by: Eldad A. Fux <eldad.fux@gmail.com>
This commit is contained in:
Shimon Newman
2022-07-05 10:10:58 +03:00
committed by GitHub
co-authored by Eldad A. Fux
parent 7b429bdcd7
commit 716c62ba8f
+2 -1
View File
@@ -60,7 +60,8 @@ $avatarCallback = function (string $type, string $code, int $width, int $height,
'dateAccessed' => time(),
'path' => 'app-0'
])));
} else {
}
else {
$cacheRow->setAttribute('dateAccessed', time());
Authorization::skip(fn () => $dbForProject->updateDocument('cache', $cacheRow->getId(), $cacheRow));
}