Add more async
This commit is contained in:
parent
7be2b7b97a
commit
8ea8b4d279
14 changed files with 108 additions and 300 deletions
|
@ -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');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue