Skip to content

Commit 45e078e

Browse files
committed
Update user type to support onboarding as well
1 parent c73d52f commit 45e078e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/src/types/User.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import { z } from "zod";
22
import { ProficiencyEnum } from "./Proficiency";
33
import { LanguageEnum } from "./Languages";
4+
import { RoleEnum } from "./Role";
45

56
const UserProfileSchema = z.object({
67
username: z.string(),
78
displayName: z.string(),
89
email: z.string().email(),
9-
roles: z.string().array(),
10+
roles: z.array(RoleEnum),
1011
proficiency: ProficiencyEnum,
1112
languages: z.array(LanguageEnum),
1213
});

0 commit comments

Comments
 (0)