Skip to content

Commit 5999ed7

Browse files
authored
Merge pull request #60 from DouglasNeuroInformatics/dev
fix: env parsing issue
2 parents 2186c0b + 31c68cf commit 5999ed7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/schemas/env.schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ export const $BaseEnv = z.object({
1616
DEBUG: $BooleanLike.optional(),
1717
/** enable log-level logs (default = true in development or production, false in tests) */
1818
LOG: $BooleanLike.optional(),
19-
LOGIN_REQUEST_TROTTLER_LIMIT: z.number().int().optional(),
20-
LOGIN_REQUEST_TROTTLER_TTL: z.number().int().optional(),
19+
LOGIN_REQUEST_TROTTLER_LIMIT: $NumberLike.pipe(z.number().int().positive()).optional(),
20+
LOGIN_REQUEST_TROTTLER_TTL: $NumberLike.pipe(z.number().int().positive()).optional(),
2121
MONGO_DIRECT_CONNECTION: $BooleanLike.optional(),
2222
MONGO_REPLICA_SET: z.enum(['rs0']).optional(),
2323
MONGO_RETRY_WRITES: $BooleanLike.optional(),

0 commit comments

Comments
 (0)