From fd782219eff8016a00e87f0c8e44af3a3ba74be6 Mon Sep 17 00:00:00 2001 From: Max Isom Date: Sun, 19 Sep 2021 22:04:34 -0400 Subject: Move to ESM, use ytsr, implement caching Closes #315 --- src/utils/db.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/utils') 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 }); -- cgit v1.2.3