diff --git a/README.md b/README.md index 67ab969..401447b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# **Aruppi API** (v4.1.3) +# **Aruppi API** (v4.1.4) > This API has everything about Japan, from anime, music, radio, images, videos ... to japanese culture > diff --git a/package.json b/package.json index b7defbf..d28ee8f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aruppi", - "version": "4.1.3", + "version": "4.1.4", "description": "Aruppi is a custom API to obtain data from the Japanese culture for the mobile app", "main": "./src/api/api.ts", "scripts": { diff --git a/src/controllers/UtilsController.ts b/src/controllers/UtilsController.ts index 0a60935..3760616 100644 --- a/src/controllers/UtilsController.ts +++ b/src/controllers/UtilsController.ts @@ -339,7 +339,7 @@ export default class UtilsController { if (redisClient.connected) { const resultQueryRedis: any = redisClient.get( - `playlist_videos_${hashStringMd5(playlistId)}`, + `videos_${hashStringMd5(playlistId)}`, ); if (resultQueryRedis) { @@ -371,14 +371,14 @@ export default class UtilsController { /!* Set the key in the redis cache. *!/ redisClient.set( - `playlist_videos_${hashStringMd5(playlistId)}`, + `videos_${hashStringMd5(playlistId)}`, JSON.stringify({ videos: results }), ); /!* After 24hrs expire the key. *!/ redisClient.expireat( - `playlist_videos_${hashStringMd5(playlistId)}`, + `videos_${hashStringMd5(playlistId)}`, parseInt(`${+new Date() / 1000}`, 10) + 7200, ); } diff --git a/src/routes.ts b/src/routes.ts index 0ca0c51..108378d 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -26,7 +26,7 @@ routes.get('/api/v4/', (req: Request, res: Response) => { res.json({ message: 'Aruppi /api - 🎏', author: 'Jéluchu', - version: '4.1.2', + version: '4.1.4', credits: 'The bitch loves /apis that offers data to Aruppi App', entries: [ {