From a3130e6d2a21ffd6d64275235f3d9d948e832eb7 Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Mon, 21 Mar 2022 17:58:04 -0700 Subject: [PATCH] server: fix sqlite database location --- server/src/lib/sequelize.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/lib/sequelize.ts b/server/src/lib/sequelize.ts index f364c3bf..edc6bd19 100644 --- a/server/src/lib/sequelize.ts +++ b/server/src/lib/sequelize.ts @@ -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', });