1
0
mirror of https://github.com/oceanprotocol/webtasks synced 2025-01-08 21:04:03 +01:00

lint fixes

This commit is contained in:
Matthias Kretschmann 2018-06-28 19:22:37 +02:00
parent 8bd236bbc6
commit 150c9bd9ba
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 4 additions and 4 deletions

View File

@ -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",

View File

@ -15,7 +15,7 @@ app.get('/:username', (req, res) => {
request(url, (error, response) => {
const json = JSON.parse(response.body.replace('])}while(1);</x>', ''))
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);</x>', ''))
const posts = json.payload.posts
const { posts } = json.payload
if (error) {
return

View File

@ -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) => {