.
This commit is contained in:
parent
6c572019be
commit
6e539efb99
@ -22,7 +22,7 @@ const multimediaComposer = (multimedias) => multimedias.map(multimedia => ({
|
|||||||
...multimedia.multimediaFile,
|
...multimedia.multimediaFile,
|
||||||
type: multimedia.type,
|
type: multimedia.type,
|
||||||
media_type: multimedia.multimediaFile.type,
|
media_type: multimedia.multimediaFile.type,
|
||||||
MultimediaFile: undefined,
|
multimediaFile: undefined,
|
||||||
createdAt: undefined,
|
createdAt: undefined,
|
||||||
updatedAt: undefined,
|
updatedAt: undefined,
|
||||||
userId: undefined,
|
userId: undefined,
|
||||||
|
|||||||
@ -13,8 +13,10 @@ let cacheWithRedis = apicache
|
|||||||
const onlyStatus200 = (req, res) => res.statusCode === 200
|
const onlyStatus200 = (req, res) => res.statusCode === 200
|
||||||
|
|
||||||
const cacheSuccesses = cacheWithRedis('1 hour', onlyStatus200);
|
const cacheSuccesses = cacheWithRedis('1 hour', onlyStatus200);
|
||||||
|
const cache1year = cacheWithRedis('1 year', onlyStatus200);
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
cacheSuccesses,
|
cacheSuccesses,
|
||||||
|
cache1year
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user