Skip to content

Commit

Permalink
fix broken schema for the messages (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardo-forina authored Oct 25, 2023
1 parent ca9acfb commit 5a3887b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/api/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const MessageSchema = z.object({
}),
});
const MessageApiResponse = z.object({
meta: z.object({}).nullable(),
meta: z.object({}).nullable().optional(),
data: z.array(MessageSchema),
});
export type Message = z.infer<typeof MessageSchema>;
Expand Down

0 comments on commit 5a3887b

Please sign in to comment.