mirror of
https://github.com/oceanprotocol/webtasks
synced 2025-01-06 20:05:40 +01:00
syntax fixes
This commit is contained in:
parent
3487b17311
commit
16aa77df07
@ -12,10 +12,10 @@
|
|||||||
"express": "^4.17.1",
|
"express": "^4.17.1",
|
||||||
"ms": "^2.1.2",
|
"ms": "^2.1.2",
|
||||||
"request": "^2.88.0",
|
"request": "^2.88.0",
|
||||||
"webtask-tools": "^3.4.0"
|
"webtask-tools": "^3.4.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^6.2.1",
|
"eslint": "^6.6.0",
|
||||||
"eslint-config-oceanprotocol": "^1.5.0"
|
"eslint-config-oceanprotocol": "^1.5.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ app.get('/:username', (req, res) => {
|
|||||||
let posts
|
let posts
|
||||||
|
|
||||||
if (json.payload.posts) {
|
if (json.payload.posts) {
|
||||||
posts = json.payload.posts
|
({ posts } = json.payload.posts)
|
||||||
}
|
}
|
||||||
if (json.payload.references.Post) {
|
if (json.payload.references.Post) {
|
||||||
posts = Object.keys(json.payload.references.Post).map(
|
posts = Object.keys(json.payload.references.Post).map(
|
||||||
|
Loading…
Reference in New Issue
Block a user