Skip to content

Commit 0e218d3

Browse files
committed
fix(user): list counts for month in review response
1 parent bdce9d2 commit 0e218d3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

projects/api/src/contracts/users/_internal/response/monthInReviewResponseSchema.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const statsCategoriesSchema = z.object({
1717
collected_counts: statsSchema,
1818
ratings_counts: statsSchema,
1919
comments_counts: statsSchema,
20-
lists_counts: statsSchema,
2120
});
2221

2322
const watchedEpisodeSchema = z.object({
@@ -40,7 +39,9 @@ const watchedItemSchema = z.discriminatedUnion('type', [
4039

4140
export const monthInReviewResponseSchema = z.object({
4241
stats: z.object({
43-
all: statsCategoriesSchema,
42+
all: statsCategoriesSchema.merge(z.object({
43+
lists_counts: statsSchema,
44+
})),
4445
shows: statsCategoriesSchema,
4546
movies: statsCategoriesSchema,
4647
}),

0 commit comments

Comments
 (0)