Skip to content

Commit

Permalink
chore(provider): change env variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Sep 6, 2022
1 parent 79c8d07 commit a542690
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/database",
"version": "1.0.4",
"version": "1.0.5",
"description": "The Athenna database handler for SQL/NoSQL. Built on top of TypeORM.",
"license": "MIT",
"author": "João Lenon <lenon@athenna.io>",
Expand Down
6 changes: 3 additions & 3 deletions src/Providers/DatabaseProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ export class DatabaseProvider extends ServiceProvider {
this.container.bind('Athenna/Core/Database', DatabaseImpl)

if (
process.env.AUTO_CONNECT_DB &&
(process.env.AUTO_CONNECT_DB === true ||
process.env.AUTO_CONNECT_DB === 'true')
process.env.DB_AUTO_CONNECT &&
(process.env.DB_AUTO_CONNECT === true ||
process.env.DB_AUTO_CONNECT === 'true')
) {
await Database.connect()
}
Expand Down

0 comments on commit a542690

Please sign in to comment.