Skip to content

Commit 02d96a4

Browse files
committed
check env var type
1 parent 272b90a commit 02d96a4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/config/config.env.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ export class ConfigEnv {
6161
@Transform(({ value }) => {
6262
if (typeof value === 'boolean') return value;
6363

64-
return value.toLowerCase() === 'true';
64+
if (typeof value === 'string') {
65+
return value.toLowerCase() === 'true';
66+
}
67+
68+
return false;
6569
})
6670
ACCEPT_CUSTOM_PAYMENTS_MEMO;
6771
}

0 commit comments

Comments
 (0)