.
This commit is contained in:
parent
6c572019be
commit
6e539efb99
@ -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,
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user