fix: coalesce to empty str

This commit is contained in:
Apoorv Mishra
2023-07-23 13:26:13 +05:30
parent 43a91626b2
commit 8b3c58a162

View File

@@ -617,7 +617,7 @@ export class Environment {
*/
@IsOptional()
@CannotUseWithout("IFRAMELY_URL")
public IFRAMELY_API_KEY = this.toOptionalString(process.env.IFRAMELY_API_KEY);
public IFRAMELY_API_KEY = process.env.IFRAMELY_API_KEY ?? "";
/**
* The product name