From abac4ee323c0f7ffb81af6a183758ec1479c2fcc Mon Sep 17 00:00:00 2001 From: Hugo Arregui Date: Tue, 30 Jan 2024 15:49:44 -0300 Subject: [PATCH] Save Tue Jan 30 03:49:44 PM -03 2024 --- content/src/Environment.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/content/src/Environment.ts b/content/src/Environment.ts index 86ba524d1..d7aa24148 100644 --- a/content/src/Environment.ts +++ b/content/src/Environment.ts @@ -371,7 +371,11 @@ export class EnvironmentBuilder { EnvironmentConfig.GARBAGE_COLLECTION, () => process.env.GARBAGE_COLLECTION === 'true' ) - this.registerConfigIfNotAlreadySet(env, EnvironmentConfig.GARBAGE_COLLECTION_INTERVAL, () => ms('6h')) + this.registerConfigIfNotAlreadySet( + env, + EnvironmentConfig.GARBAGE_COLLECTION_INTERVAL, + () => process.env.GARBAGE_COLLECTION_INTERVAL ?? ms('6h') + ) this.registerConfigIfNotAlreadySet(env, EnvironmentConfig.PG_IDLE_TIMEOUT, () => process.env.PG_IDLE_TIMEOUT ? ms(process.env.PG_IDLE_TIMEOUT) : ms('30s')