server: fix sqlite database location

This commit is contained in:
Max Leiter 2022-03-21 17:58:04 -07:00
parent fb38ecc932
commit a3130e6d2a
No known key found for this signature in database
GPG key ID: A3512F2F2F17EBDA

View file

@ -3,7 +3,7 @@ import { Sequelize } from 'sequelize-typescript';
export const sequelize = new Sequelize({
dialect: 'sqlite',
database: 'drift',
storage: process.env.MEMORY_DB === "true" ? ":memory:" : __dirname + './../drift.sqlite',
storage: process.env.MEMORY_DB === "true" ? ":memory:" : __dirname + '/../../drift.sqlite',
models: [__dirname + '/models'],
host: 'localhost',
});