From 1e03398bfc2da1ae88cca5f36fe5b1f7d046d9c6 Mon Sep 17 00:00:00 2001 From: victor-0x29a Date: Thu, 30 May 2024 12:38:08 -0400 Subject: [PATCH] Fix: correct path for database's --- src/database/connection.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/database/connection.ts b/src/database/connection.ts index 18ea63a..87fee13 100644 --- a/src/database/connection.ts +++ b/src/database/connection.ts @@ -1,9 +1,9 @@ import { Sequelize } from "sequelize"; import { isEnableLogging, isTestingEnvironment } from "../constants"; -const storage = isTestingEnvironment ? ':memory:' : '../infra/database.db' +const storage = isTestingEnvironment ? ':memory:' : './src/infra/database.db' -const logsStorage = isTestingEnvironment ? ':memory:' : '../infra/database-logs.db' +const logsStorage = isTestingEnvironment ? ':memory:' : './src/infra/database-logs.db' export const storageSequelize = new Sequelize({