aboutsummaryrefslogtreecommitdiff
path: root/src/utils/db.ts
diff options
context:
space:
mode:
authorMax Isom <[email protected]>2021-11-18 20:55:57 -0500
committerMax Isom <[email protected]>2021-11-18 20:55:57 -0500
commit04c7e61fc076e2fa5ddf3d0faf6ebb73f4d52d82 (patch)
tree71d1879e787b7c988939d963dbc4baa857171f5b /src/utils/db.ts
parentd805da906a1744c23e0b484b522b078102675770 (diff)
downloadmuse-04c7e61fc076e2fa5ddf3d0faf6ebb73f4d52d82.tar.xz
muse-04c7e61fc076e2fa5ddf3d0faf6ebb73f4d52d82.zip
Add FileCache model
Diffstat (limited to 'src/utils/db.ts')
-rw-r--r--src/utils/db.ts4
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,
});