diff --git a/helpers/composes.helper.js b/helpers/composes.helper.js index 1b07217..c5c1c2f 100644 --- a/helpers/composes.helper.js +++ b/helpers/composes.helper.js @@ -22,7 +22,7 @@ const multimediaComposer = (multimedias) => multimedias.map(multimedia => ({ ...multimedia.multimediaFile, type: multimedia.type, media_type: multimedia.multimediaFile.type, - MultimediaFile: undefined, + multimediaFile: undefined, createdAt: undefined, updatedAt: undefined, userId: undefined, diff --git a/middlewares/cache.js b/middlewares/cache.js index a56be49..5c4844b 100644 --- a/middlewares/cache.js +++ b/middlewares/cache.js @@ -13,8 +13,10 @@ let cacheWithRedis = apicache const onlyStatus200 = (req, res) => res.statusCode === 200 const cacheSuccesses = cacheWithRedis('1 hour', onlyStatus200); +const cache1year = cacheWithRedis('1 year', onlyStatus200); module.exports = { cacheSuccesses, + cache1year }