Skip to content

Commit 3130f21

Browse files
committed
fix(recommendation): users can be null
1 parent 8daa33a commit 3130f21

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

projects/api/src/contracts/recommendations/_internal/response/recommendedMovieResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { userProfileWithNotesSchema } from './userProfileWithNotesSchema.ts';
55
export const recommendedMovieResponse = z.array(
66
movieResponseSchema
77
.extend({
8-
favorited_by: z.array(userProfileWithNotesSchema),
9-
recommended_by: z.array(userProfileWithNotesSchema),
8+
favorited_by: z.array(userProfileWithNotesSchema).nullable(),
9+
recommended_by: z.array(userProfileWithNotesSchema).nullable(),
1010
}),
1111
);

projects/api/src/contracts/recommendations/_internal/response/recommendedShowResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { userProfileWithNotesSchema } from './userProfileWithNotesSchema.ts';
55
export const recommendedShowResponse = z.array(
66
showResponseSchema
77
.extend({
8-
favorited_by: z.array(userProfileWithNotesSchema),
9-
recommended_by: z.array(userProfileWithNotesSchema),
8+
favorited_by: z.array(userProfileWithNotesSchema).nullable(),
9+
recommended_by: z.array(userProfileWithNotesSchema).nullable(),
1010
}),
1111
);

0 commit comments

Comments
 (0)