diff options
| author | Max Isom <[email protected]> | 2021-11-18 20:55:57 -0500 |
|---|---|---|
| committer | Max Isom <[email protected]> | 2021-11-18 20:55:57 -0500 |
| commit | 04c7e61fc076e2fa5ddf3d0faf6ebb73f4d52d82 (patch) | |
| tree | 71d1879e787b7c988939d963dbc4baa857171f5b /src/utils/db.ts | |
| parent | d805da906a1744c23e0b484b522b078102675770 (diff) | |
| download | muse-04c7e61fc076e2fa5ddf3d0faf6ebb73f4d52d82.tar.xz muse-04c7e61fc076e2fa5ddf3d0faf6ebb73f4d52d82.zip | |
Add FileCache model
Diffstat (limited to 'src/utils/db.ts')
| -rw-r--r-- | src/utils/db.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/db.ts b/src/utils/db.ts index f7d4fff..15a2d79 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.js'; -import {KeyValueCache, Settings, Shortcut} from '../models/index.js'; +import {FileCache, KeyValueCache, Settings, Shortcut} from '../models/index.js'; export const sequelize = new Sequelize({ dialect: 'sqlite', database: 'muse', storage: path.join(DATA_DIR, 'db.sqlite'), - models: [KeyValueCache, Settings, Shortcut], + models: [FileCache, KeyValueCache, Settings, Shortcut], logging: false, }); |
