Skip to content

Commit

Permalink
fix(types): 🐛 default runtimeLengthMin to 0 to allow podcast content
Browse files Browse the repository at this point in the history
IMO, runtimeLengthMin isn't critical data that should bar an entry into the database. Fixes #780
  • Loading branch information
djdembeck committed Aug 9, 2024
1 parent c457327 commit 1bd00c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const ApiBookSchema = z.object({
rating: z.string(),
region: RegionSchema,
releaseDate: z.date(),
runtimeLengthMin: z.number().or(z.literal(0)),
runtimeLengthMin: z.number().default(0),
seriesPrimary: ApiSeriesSchema.optional(),
seriesSecondary: ApiSeriesSchema.optional(),
subtitle: z.string().optional(),
Expand Down

0 comments on commit 1bd00c1

Please sign in to comment.