1
0
mirror of https://github.com/bigchaindb/meetups.git synced 2024-12-27 07:07:49 +01:00

Merge pull request #45 from bigchaindb/greenkeeper/xo-0.23.0

Update xo to the latest version 🚀
This commit is contained in:
Matthias Kretschmann 2018-09-04 13:40:53 +02:00 committed by GitHub
commit ef5abdea98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -33,12 +33,12 @@ const fetchMeetups = () => {
data = data_
log(`Re-built meetups cache. ` +
log('Re-built meetups cache. ' +
`Total: ${data_.length} public meetups. ` +
`Elapsed: ${(new Date() - start)}ms`)
})
.catch(err => {
logError('Error parsing response from Meetup: ' + err.stack)
.catch(error => {
logError('Error parsing response from Meetup: ' + error.stack)
})
}
@ -52,8 +52,8 @@ setInterval(fetchMeetups, ms('15m'))
// Create the response
//
module.exports = async (req, res) => {
res.setHeader('Access-Control-Allow-Origin', '*')
res.setHeader('Access-Control-Allow-Methods', 'GET')
await res.setHeader('Access-Control-Allow-Origin', '*')
await res.setHeader('Access-Control-Allow-Methods', 'GET')
return data
}

View File

@ -25,7 +25,7 @@
"request": "^2.81.0",
"request-promise": "^4.2.1",
"test-listen": "^1.0.2",
"xo": "^0.22.0"
"xo": "^0.23.0"
},
"now": {
"alias": "bigchaindb-meetups.now.sh",

View File

@ -5,7 +5,7 @@ import request from 'request-promise'
test('it works', async t => {
const service = micro(async (req, res) => {
micro.send(res, 200, {
await micro.send(res, 200, {
test: 'woot'
})
})