Use native esm

This commit is contained in:
Jonathan Cremin 2020-01-18 10:19:20 +00:00
parent c4354a6600
commit 70bd12a4d6
37 changed files with 379 additions and 119 deletions

View file

@ -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();
});