This commit is contained in:
David Arranz 2019-07-25 20:05:24 +02:00
parent 6c572019be
commit 6e539efb99
2 changed files with 3 additions and 1 deletions

View File

@ -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,

View File

@ -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
}