Skip to content

Commit

Permalink
fix(user): coerce env var properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrishajev committed Jan 2, 2025
1 parent e49cdc5 commit 8f473f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/src/user/config/env.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { z } from "zod";

export const envSchema = z.object({
STALE_ANONYMOUS_USERS_LIVE_IN_DAYS: z.number().optional().default(90)
STALE_ANONYMOUS_USERS_LIVE_IN_DAYS: z.number({ coerce: true }).optional().default(90)
});

0 comments on commit 8f473f0

Please sign in to comment.