mirror of
https://github.com/bigchaindb/meetups.git
synced 2024-11-22 01:36:56 +01:00
Merge pull request #45 from bigchaindb/greenkeeper/xo-0.23.0
Update xo to the latest version 🚀
This commit is contained in:
commit
ef5abdea98
10
index.js
10
index.js
@ -33,12 +33,12 @@ const fetchMeetups = () => {
|
|||||||
|
|
||||||
data = data_
|
data = data_
|
||||||
|
|
||||||
log(`Re-built meetups cache. ` +
|
log('Re-built meetups cache. ' +
|
||||||
`Total: ${data_.length} public meetups. ` +
|
`Total: ${data_.length} public meetups. ` +
|
||||||
`Elapsed: ${(new Date() - start)}ms`)
|
`Elapsed: ${(new Date() - start)}ms`)
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(error => {
|
||||||
logError('Error parsing response from Meetup: ' + err.stack)
|
logError('Error parsing response from Meetup: ' + error.stack)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -52,8 +52,8 @@ setInterval(fetchMeetups, ms('15m'))
|
|||||||
// Create the response
|
// Create the response
|
||||||
//
|
//
|
||||||
module.exports = async (req, res) => {
|
module.exports = async (req, res) => {
|
||||||
res.setHeader('Access-Control-Allow-Origin', '*')
|
await res.setHeader('Access-Control-Allow-Origin', '*')
|
||||||
res.setHeader('Access-Control-Allow-Methods', 'GET')
|
await res.setHeader('Access-Control-Allow-Methods', 'GET')
|
||||||
|
|
||||||
return data
|
return data
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
"request": "^2.81.0",
|
"request": "^2.81.0",
|
||||||
"request-promise": "^4.2.1",
|
"request-promise": "^4.2.1",
|
||||||
"test-listen": "^1.0.2",
|
"test-listen": "^1.0.2",
|
||||||
"xo": "^0.22.0"
|
"xo": "^0.23.0"
|
||||||
},
|
},
|
||||||
"now": {
|
"now": {
|
||||||
"alias": "bigchaindb-meetups.now.sh",
|
"alias": "bigchaindb-meetups.now.sh",
|
||||||
|
@ -5,7 +5,7 @@ import request from 'request-promise'
|
|||||||
|
|
||||||
test('it works', async t => {
|
test('it works', async t => {
|
||||||
const service = micro(async (req, res) => {
|
const service = micro(async (req, res) => {
|
||||||
micro.send(res, 200, {
|
await micro.send(res, 200, {
|
||||||
test: 'woot'
|
test: 'woot'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user