Use native esm
This commit is contained in:
parent
c4354a6600
commit
70bd12a4d6
37 changed files with 379 additions and 119 deletions
|
@ -1,11 +1,12 @@
|
|||
import co from 'co';
|
||||
import models from '../models';
|
||||
import models from '../models/index.cjs';
|
||||
|
||||
import debugname from 'debug';
|
||||
const debug = debugname('match.audio:db');
|
||||
const debug = debugname('combine.fm:db');
|
||||
|
||||
co(async function sync() {
|
||||
debug('Syncing schema');
|
||||
await models.sequelize.sync();
|
||||
debug('Schema synced');
|
||||
models.sequelize.close();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue