Skip to content

Commit

Permalink
fix: update RedisIPFamily initialization to handle undefined environm…
Browse files Browse the repository at this point in the history
…ent variable
  • Loading branch information
simlarsen committed Dec 24, 2024
1 parent bb543ef commit 70aae7c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Common/Server/EnvironmentConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,9 @@ export const ShouldRedisTlsEnable: boolean = Boolean(
RedisTlsCa || (RedisTlsCert && RedisTlsKey),
);

export const RedisIPFamily: number =
Number(process.env["REDIS_IP_FAMILY"]) || 4;
export const RedisIPFamily: number = process.env["REDIS_IP_FAMILY"]
? Number(process.env["REDIS_IP_FAMILY"])
: 4;

export const IsProduction: boolean =
process.env["ENVIRONMENT"] === "production";
Expand Down

0 comments on commit 70aae7c

Please sign in to comment.