fix: update channel message schema

This commit is contained in:
himself65
2023-03-30 18:33:09 -05:00
parent bb1224f9ee
commit f935bbaf5d
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -99,7 +99,7 @@ export const userSchema = z.object({
name: z.string(),
email: z.string(),
avatar_url: z.string(),
create_at: z.string(),
created_at: z.number(),
});
export const workspaceSchema = z.object({
@@ -113,6 +113,7 @@ export type Workspace = z.infer<typeof workspaceSchema>;
export const workspaceDetailSchema = z.object({
...workspaceSchema.shape,
permission: z.undefined(),
owner: userSchema,
member_count: z.number(),
});