Update for Babel 6 changes

This commit is contained in:
Jonathan Cremin 2015-11-22 12:37:09 +00:00
parent fe6e704c74
commit 0be6450250
4 changed files with 62 additions and 1046 deletions

View file

@ -5,7 +5,7 @@ const debug = debuglog('match.audio');
const uristring = process.env.MONGOLAB_URI || process.env.MONGOHQ_URL || 'mongodb://localhost:27017/match-audio';
export default function*() {
export default function* () {
const client = yield MongoClient.connect(uristring);
debug('Successfully connected to Mongodb');
client.matches = client.collection('matches');