From 58570c42f79d6a26cc018cf8795c8b95d5ba01c5 Mon Sep 17 00:00:00 2001 From: Ophelia Goldstein <159258143+opheliagoldstein@users.noreply.github.com> Date: Sat, 11 Oct 2025 22:52:45 +0300 Subject: [PATCH] fix: resolve vscode type errors in cache utils (#4559) Co-authored-by: Alexandr --- backend/src/common/cache.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/common/cache.js b/backend/src/common/cache.js index 0961863d..b5e8e432 100644 --- a/backend/src/common/cache.js +++ b/backend/src/common/cache.js @@ -87,7 +87,7 @@ const resolveCacheSeconds = ({ requested, def, min, max }) => { /** * Disables caching by setting appropriate headers on the response object. * - * @param {Object} res The response object. + * @param {any} res The response object. */ const disableCaching = (res) => { // Disable caching for browsers, shared caches/CDNs, and GitHub Camo. @@ -102,7 +102,7 @@ const disableCaching = (res) => { /** * Sets the Cache-Control headers on the response object. * - * @param {Object} res The response object. + * @param {any} res The response object. * @param {number} cacheSeconds The cache seconds to set in the headers. */ const setCacheHeaders = (res, cacheSeconds) => { @@ -122,7 +122,7 @@ const setCacheHeaders = (res, cacheSeconds) => { /** * Sets the Cache-Control headers for error responses on the response object. * - * @param {Object} res The response object. + * @param {any} res The response object. */ const setErrorCacheHeaders = (res) => { const envCacheSeconds = process.env.CACHE_SECONDS