syntax fixes

This commit is contained in:
Matthias Kretschmann 2019-11-11 14:51:00 +01:00
parent 3487b17311
commit 16aa77df07
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 3 additions and 3 deletions

View File

@ -12,10 +12,10 @@
"express": "^4.17.1",
"ms": "^2.1.2",
"request": "^2.88.0",
"webtask-tools": "^3.4.0"
"webtask-tools": "^3.4.1"
},
"devDependencies": {
"eslint": "^6.2.1",
"eslint": "^6.6.0",
"eslint-config-oceanprotocol": "^1.5.0"
}
}

View File

@ -26,7 +26,7 @@ app.get('/:username', (req, res) => {
let posts
if (json.payload.posts) {
posts = json.payload.posts
({ posts } = json.payload.posts)
}
if (json.payload.references.Post) {
posts = Object.keys(json.payload.references.Post).map(