From e89455d62dbba1e2fbe8e29068640e5d2efd0c42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9luchu?= Date: Thu, 11 Jun 2020 19:17:57 +0200 Subject: [PATCH] Fix route on Future Seasons - v2.2.1 --- README.md | 2 +- package.json | 2 +- src/api/routes/index.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bbd680c..e524091 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# **Aruppi API** (v2.2.0) +# **Aruppi API** (v2.2.1) > This API has everything about Japan, from anime, music, radio, images, videos ... to japanese culture > diff --git a/package.json b/package.json index b170bef..7e31ae0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aruppi", - "version": "2.1.0", + "version": "2.2.1", "description": "Aruppi is a custom API to obtain data from the Japanese culture for the mobile app", "main": "./src/api/api.js", "scripts": { diff --git a/src/api/routes/index.js b/src/api/routes/index.js index 86a3d63..b76c5e3 100644 --- a/src/api/routes/index.js +++ b/src/api/routes/index.js @@ -142,10 +142,10 @@ router.get('/allSeasons' , (req, res) =>{ router.get('/laterSeasons' , (req, res) =>{ api.laterSeasons() - .then(archive =>{ - if (archive.length > 0) { + .then(future =>{ + if (future.length > 0) { res.status(200).json({ - archive + future }); } else ( res.status(500).json({ message: 'Aruppi lost in the shell'})