From 150c9bd9ba8c0a03f2f1d31f917b2308885beee5 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 28 Jun 2018 19:22:37 +0200 Subject: [PATCH] lint fixes --- package.json | 2 +- webtask-medium.js | 4 ++-- webtask-youtube.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 282fd67..b09dafa 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ }, "devDependencies": { "eslint": "^5.0.1", - "eslint-config-oceanprotocol": "^1.0.4", + "eslint-config-oceanprotocol": "^1.0.6", "eslint-config-standard": "^11.0.0", "eslint-plugin-import": "^2.13.0", "eslint-plugin-node": "^6.0.1", diff --git a/webtask-medium.js b/webtask-medium.js index 614c9e5..baea0b1 100644 --- a/webtask-medium.js +++ b/webtask-medium.js @@ -15,7 +15,7 @@ app.get('/:username', (req, res) => { request(url, (error, response) => { const json = JSON.parse(response.body.replace('])}while(1);', '')) - const posts = json.payload.posts + const { posts } = json.payload const parsedPosts = [] let holder = {} @@ -44,7 +44,7 @@ app.get('/:username/raw', (req, res) => { request(url, (error, response) => { const json = JSON.parse(response.body.replace('])}while(1);', '')) - const posts = json.payload.posts + const { posts } = json.payload if (error) { return diff --git a/webtask-youtube.js b/webtask-youtube.js index 294e517..10e2474 100644 --- a/webtask-youtube.js +++ b/webtask-youtube.js @@ -7,7 +7,7 @@ const webtask = require('webtask-tools') const app = express() app.get('/', (req, res) => { - res.send('Please specify the playlist ID and API key.') + res.send('Please specify the playlist ID as parameter.') }) app.get('/:playlist', (req, res) => {