missing bracket

This commit is contained in:
Tanya Byrne
2020-08-24 13:19:12 +01:00
parent 2f9099f08d
commit 8e1f9c6565

View File

@@ -16,7 +16,7 @@ const redisClient = redis.createClient({
password: env.REDIS_PASSWORD,
});
const cacheMiddleware = (TTL: number, checkDeath: number) =>
const cacheMiddleware = (TTL: number, checkDeath: number) => {
asyncHandler(async (req, res, next) => {
// make the key of the cache the URL
// need to check that this will work for all endpoints
@@ -52,5 +52,6 @@ const cacheMiddleware = (TTL: number, checkDeath: number) =>
return next();
});
};
export default cacheMiddleware;