feat: add views field to news response schema and update dashboard pages
This commit is contained in:
@@ -23,6 +23,7 @@ export const newsResponseSchema = z.object({
|
||||
created_at: z.string(),
|
||||
updated_at: z.string(),
|
||||
author: authorSchema,
|
||||
views: z.number(),
|
||||
})
|
||||
const dataResponseSchema = z.object({
|
||||
data: z.array(newsResponseSchema),
|
||||
|
||||
Reference in New Issue
Block a user