Skip to content

Commit

Permalink
Bugfix/fix trending zod error (#679)
Browse files Browse the repository at this point in the history
* Make userId optional
  • Loading branch information
NiallJoeMaher authored Dec 28, 2023
1 parent 6fb3010 commit d728854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/lib/posts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const GetPostSchema = z.object({
});

export const GetTrendingSchema = z.object({
currentUserId: z.string(),
currentUserId: z.string().optional(),
});

type GetPost = z.infer<typeof GetPostSchema>;
Expand Down

0 comments on commit d728854

Please sign in to comment.