Skip to content

Commit

Permalink
Fix: specs breaking 🛠️
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-0x29a committed Sep 27, 2024
1 parent 2610352 commit bcdea46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"pg": "^8.13.0",
"pg-hstore": "^2.3.4",
"sequelize": "^6.37.3",
"sqlite3": "^5.1.7",
"yup": "^1.4.0"
}
}
14 changes: 6 additions & 8 deletions src/database/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ const options = isTestingEnvironment ? {} : {
}
const dialect = isTestingEnvironment ? 'sqlite' : 'postgres'

export const storageSequelize = (function () {
return new Sequelize({
dialect,
storage: storage,
logging: isEnableLogging,
...options
})
}())
export const storageSequelize = new Sequelize({
dialect,
storage: storage,
logging: isEnableLogging,
...options
})

export const SequelizeAuth = storageSequelize.authenticate({
logging: isEnableLogging
Expand Down

0 comments on commit bcdea46

Please sign in to comment.