From aeebe88aca0a3d43ef1fd802e9c0c30780ffe1f8 Mon Sep 17 00:00:00 2001 From: iPromKnight Date: Mon, 5 Feb 2024 13:09:36 +0000 Subject: [PATCH] postgres db --- .../consumer/src/lib/models/configuration/database_config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node/consumer/src/lib/models/configuration/database_config.ts b/src/node/consumer/src/lib/models/configuration/database_config.ts index bc47c9b..fc5e8d3 100644 --- a/src/node/consumer/src/lib/models/configuration/database_config.ts +++ b/src/node/consumer/src/lib/models/configuration/database_config.ts @@ -1,11 +1,11 @@ export class DatabaseConfig { public POSTGRES_HOST: string = process.env.POSTGRES_HOST || 'postgres'; public POSTGRES_PORT: number = parseInt(process.env.POSTGRES_PORT || '5432'); - public POSTGRES_DATABASE: string = process.env.POSTGRES_DATABASE || 'knightcrawler'; + public POSTGRES_DB: string = process.env.POSTGRES_DB || 'knightcrawler'; public POSTGRES_USER: string = process.env.POSTGRES_USER || 'postgres'; public POSTGRES_PASSWORD: string = process.env.POSTGRES_PASSWORD || 'postgres'; public get POSTGRES_URI() { - return `postgres://${this.POSTGRES_USER}:${this.POSTGRES_PASSWORD}@${this.POSTGRES_HOST}:${this.POSTGRES_PORT}/${this.POSTGRES_DATABASE}`; + return `postgres://${this.POSTGRES_USER}:${this.POSTGRES_PASSWORD}@${this.POSTGRES_HOST}:${this.POSTGRES_PORT}/${this.POSTGRES_DB}`; } } \ No newline at end of file