mirror of
https://github.com/oceanprotocol/webtasks
synced 2025-01-08 21:04:03 +01:00
lint fixes
This commit is contained in:
parent
8bd236bbc6
commit
150c9bd9ba
@ -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",
|
||||
|
@ -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
|
||||
|
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user