Skip to content

Commit

Permalink
fix: add dialect module config
Browse files Browse the repository at this point in the history
  • Loading branch information
Keemluvr committed Jun 12, 2024
1 parent 33f012f commit 918e784
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/database/database.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import dotenv from 'dotenv';
import pg from 'pg';

dotenv.config();

Expand All @@ -10,6 +11,7 @@ const configDB = {
database: process.env.DB_NAME,
host: process.env.DB_HOST,
port: process.env.DB_PORT,
dialectModule: pg,
dialectOptions: {
ssl: {
require: true,
Expand All @@ -23,6 +25,7 @@ const configDB = {
database: process.env.DB_NAME,
host: process.env.DB_HOST,
port: process.env.DB_PORT,
dialectModule: pg,
dialectOptions: {
ssl: {
require: true,
Expand Down

0 comments on commit 918e784

Please sign in to comment.