diff options
| author | Max Isom <[email protected]> | 2021-09-19 22:04:34 -0400 |
|---|---|---|
| committer | Max Isom <[email protected]> | 2021-09-19 22:09:09 -0400 |
| commit | fd782219eff8016a00e87f0c8e44af3a3ba74be6 (patch) | |
| tree | 2de37667318794427406b45848a7bf699c9e1a6f /src/index.ts | |
| parent | efcdeb78c8b690bc544dac1ed0be96a6693bcff6 (diff) | |
| download | muse-fd782219eff8016a00e87f0c8e44af3a3ba74be6.tar.xz muse-fd782219eff8016a00e87f0c8e44af3a3ba74be6.zip | |
Move to ESM, use ytsr, implement caching
Closes #315
Diffstat (limited to 'src/index.ts')
| -rw-r--r-- | src/index.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/index.ts b/src/index.ts index 7b1aac4..5bf5bab 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,10 +1,10 @@ import makeDir from 'make-dir'; import path from 'path'; -import container from './inversify.config'; -import {TYPES} from './types'; -import Bot from './bot'; -import {sequelize} from './utils/db'; -import Config from './services/config'; +import container from './inversify.config.js'; +import {TYPES} from './types.js'; +import Bot from './bot.js'; +import {sequelize} from './utils/db.js'; +import Config from './services/config.js'; const bot = container.get<Bot>(TYPES.Bot); @@ -16,7 +16,7 @@ const bot = container.get<Bot>(TYPES.Bot); await makeDir(config.CACHE_DIR); await makeDir(path.join(config.CACHE_DIR, 'tmp')); - await sequelize.sync({}); + await sequelize.sync({alter: true}); await bot.listen(); })(); |
