feat: enhance news and user schemas with author and subscription details
This commit is contained in:
@@ -13,8 +13,6 @@ const newsSchema = z.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
code: z.string(),
|
||||
created_at: z.string(),
|
||||
updated_at: z.string(),
|
||||
}),
|
||||
),
|
||||
tags: z.array(
|
||||
@@ -22,8 +20,6 @@ const newsSchema = z.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
code: z.string(),
|
||||
created_at: z.string(),
|
||||
updated_at: z.string(),
|
||||
}),
|
||||
),
|
||||
is_premium: z.boolean(),
|
||||
@@ -33,6 +29,11 @@ const newsSchema = z.object({
|
||||
live_at: z.string(),
|
||||
created_at: z.string(),
|
||||
updated_at: z.string(),
|
||||
author: z.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
profile_picture: z.string(),
|
||||
}),
|
||||
}),
|
||||
),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user