Skip to content

Commit

Permalink
Save Tue Jan 30 03:49:44 PM -03 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Arregui committed Jan 30, 2024
1 parent 016a093 commit abac4ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion content/src/Environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit abac4ee

Please sign in to comment.