Skip to content

Commit

Permalink
fix(frontend): allow null value for feedback's user_email field
Browse files Browse the repository at this point in the history
  • Loading branch information
634750802 committed Jul 26, 2024
1 parent 960a7ae commit 6c3087d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/app/src/api/feedbacks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface Feedback {
user_id: string | null;
chat_title: string;
chat_message_content: string;
user_email: string;
user_email: string | null;
}

const feedbackSchema = z.object({
Expand All @@ -30,9 +30,9 @@ const feedbackSchema = z.object({
created_at: zodJsonDate(),
updated_at: zodJsonDate(),
user_id: z.string().nullable(),
user_email: z.string().nullable(),
chat_title: z.string(),
chat_message_content: z.string(),
user_email: z.string(),
}) satisfies ZodType<Feedback, any, any>;

export async function listFeedbacks ({ page = 1, size = 10 }: PageParams = {}): Promise<Page<Feedback>> {
Expand Down

0 comments on commit 6c3087d

Please sign in to comment.