1
0
Fork 0
mirror of synced 2024-09-29 08:51:28 +13:00

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
parent 7b429bdcd7
commit 716c62ba8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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