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/utils | |
| parent | efcdeb78c8b690bc544dac1ed0be96a6693bcff6 (diff) | |
| download | muse-fd782219eff8016a00e87f0c8e44af3a3ba74be6.tar.xz muse-fd782219eff8016a00e87f0c8e44af3a3ba74be6.zip | |
Move to ESM, use ytsr, implement caching
Closes #315
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/db.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/db.ts b/src/utils/db.ts index 01d5e01..4a15875 100644 --- a/src/utils/db.ts +++ b/src/utils/db.ts @@ -1,12 +1,12 @@ import {Sequelize} from 'sequelize-typescript'; import path from 'path'; -import {DATA_DIR} from '../services/config'; -import {Settings, Shortcut} from '../models'; +import {DATA_DIR} from '../services/config.js'; +import {Cache, Settings, Shortcut} from '../models/index.js'; export const sequelize = new Sequelize({ dialect: 'sqlite', database: 'muse', storage: path.join(DATA_DIR, 'db.sqlite'), - models: [Settings, Shortcut], + models: [Cache, Settings, Shortcut], logging: false }); |
