diff --git a/ui/server/api/[owner]/[repo]/code-metadata/index.put.ts b/ui/server/api/[owner]/[repo]/code-metadata/index.put.ts index 56d4db7..16e9393 100644 --- a/ui/server/api/[owner]/[repo]/code-metadata/index.put.ts +++ b/ui/server/api/[owner]/[repo]/code-metadata/index.put.ts @@ -13,15 +13,13 @@ export default defineEventHandler(async (event) => { email: z.string().optional(), familyName: z.string().optional(), givenName: z.string(), - roles: z - .array( - z.object({ - endDate: z.number().optional().nullable(), - role: z.string().nullable(), - startDate: z.number().optional().nullable(), - }), - ) - .optional(), + roles: z.array( + z.object({ + endDate: z.number().optional().nullable(), + role: z.string().nullable(), + startDate: z.number().optional().nullable(), + }), + ), uri: z.string().optional(), }), ), @@ -33,18 +31,13 @@ export default defineEventHandler(async (event) => { email: z.string().optional(), familyName: z.string().optional(), givenName: z.string(), - roles: z - .array( - z.object({ - endDate: z - .union([z.string(), z.number()]) - .optional() - .nullable(), - role: z.string().nullable(), - startDate: z.number().optional().nullable(), - }), - ) - .optional(), + roles: z.array( + z.object({ + endDate: z.union([z.string(), z.number()]).optional().nullable(), + role: z.string().nullable(), + startDate: z.number().optional().nullable(), + }), + ), uri: z.string().optional(), }), ),