Skip to content

Commit

Permalink
Fix: correct path for database's
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-0x29a committed May 30, 2024
1 parent 2504ef1 commit 1e03398
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/database/connection.ts
Original file line number Diff line number Diff line change
@@ -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({
Expand Down

0 comments on commit 1e03398

Please sign in to comment.