From 0794e7054c8ddb84f3676f281495f0817cc0a52a Mon Sep 17 00:00:00 2001 From: Abdul Rahman Reza Date: Wed, 1 Jan 2025 15:50:22 +0700 Subject: [PATCH] update config --- config/default.json | 3 ++- config/prod.json | 7 ++++--- config/stag.json | 3 ++- src/helpers/orm.ts | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/config/default.json b/config/default.json index a6d9991..fdf6345 100644 --- a/config/default.json +++ b/config/default.json @@ -25,7 +25,8 @@ "port": "5432", "username": "postgres", "password": "123", - "database": "bri_erp" + "database": "bri_erp", + "logging": true }, "auth": { "refresh_token_lifetime_day": 30, diff --git a/config/prod.json b/config/prod.json index 17d5a46..ef0d848 100644 --- a/config/prod.json +++ b/config/prod.json @@ -8,7 +8,7 @@ "server": { "port": "4001", "host": "0.0.0.0", - "host_swagger": "https://brilianapps.shiblysolution.id/api/u", + "host_swagger": "https://brilianapps.britimorleste.tl/test/u", "max_body": "50mb", "max_upload": 104857600, "morgan": "combined", @@ -25,12 +25,13 @@ "port": "5432", "username": "bri_production", "password": "44jTPj54%6<£", - "database": "bri_erp_production" + "database": "bri_erp_production", + "logging": false }, "auth": { "refresh_token_lifetime_day": 30, "access_token_lifetime": 86400, - "reset_password_url": "https://brilianapps.shiblysolution.id/ukln/auth/reset-password/" + "reset_password_url": "https://brilianapps.britimorleste.tl/ukln/auth/reset-password/" }, "service": { "notification": "http://127.0.0.1:4008/" diff --git a/config/stag.json b/config/stag.json index f55e28a..b86ae3d 100644 --- a/config/stag.json +++ b/config/stag.json @@ -25,7 +25,8 @@ "port": "5432", "username": "bri_staging", "password": "fK*#o>1W2&6f", - "database": "bri_erp_staging" + "database": "bri_erp_staging", + "logging": true }, "auth": { "refresh_token_lifetime_day": 1, diff --git a/src/helpers/orm.ts b/src/helpers/orm.ts index b26a5b6..48135ae 100644 --- a/src/helpers/orm.ts +++ b/src/helpers/orm.ts @@ -19,7 +19,7 @@ export class OrmHelper { password: String(config.get("database.password")), database: String(config.get("database.database")), synchronize: true, - logging: true, + logging: config.get('database.logging'), entities: [User, UserRole, UserActivity, UserRefreshToken, Menu, Application], subscribers: [], migrations: [],