From 716c62ba8f461135efa07b6085af256fa0f353aa Mon Sep 17 00:00:00 2001 From: Shimon Newman Date: Tue, 5 Jul 2022 10:10:58 +0300 Subject: [PATCH] Update app/controllers/api/avatars.php Co-authored-by: Eldad A. Fux --- app/controllers/api/avatars.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/api/avatars.php b/app/controllers/api/avatars.php index 04a6c8f989..17a0d79b2d 100644 --- a/app/controllers/api/avatars.php +++ b/app/controllers/api/avatars.php @@ -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)); }