Add more async

This commit is contained in:
Jonathan Cremin 2018-04-30 22:20:01 +01:00
parent 7be2b7b97a
commit 8ea8b4d279
14 changed files with 108 additions and 300 deletions

View file

@ -4,8 +4,8 @@ import models from '../models';
import debugname from 'debug';
const debug = debugname('match.audio:db');
co(function *sync() {
co(async function sync() {
debug('Syncing schema');
yield models.sequelize.sync();
await models.sequelize.sync();
debug('Schema synced');
});