From 966765dac73c080f79ad341e71233a92b1c8663e Mon Sep 17 00:00:00 2001 From: shimon Date: Sun, 24 Jul 2022 18:25:33 +0300 Subject: [PATCH] tidy up --- app/controllers/shared/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index 91fb28a53a..24b1547183 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -121,7 +121,7 @@ App::init(function (App $utopia, Request $request, Response $response, Document $cache = new Cache(new Filesystem(APP_STORAGE_CACHE . DIRECTORY_SEPARATOR . 'app-' . $project->getId())); $data = $cache->load($key, 60 * 60 * 24 * 30 * 1); if (!empty($data)) { - $cacheLog = $dbForProject->getDocument('cache', $key); + $cacheLog = Authorization::skip(fn () => $dbForProject->getDocument('cache', $key)); if ($cacheLog->isEmpty()) { Authorization::skip(fn () => $dbForProject->createDocument('cache', new Document([ '$id' => $key,