getting ```@calcom/api:dev: info - Checking valid...
# api
p
getting
Copy code
@calcom/api:dev: info  - Checking validity of types...                                                                                                                                                                                                        
@calcom/api:dev: Failed to compile.                                                                                                                                                                                                                           
@calcom/api:dev:                                                                                                                                                                                                                                              
@calcom/api:dev: ./pages/api/event-types/[id].ts:56:56
@calcom/api:dev: Type error: Type '{ timeZone?: string | null | undefined; userId?: number | null | undefined; description?: string | null | undefined; teamId?: number | null | undefined; eventName?: string | null | undefined; ... 22 more ...; currency: string; }' is not assignable to type 'Partial<EventType>'.
@calcom/api:dev:   Types of property 'recurringEvent' are incompatible.
@calcom/api:dev:     Type '{ dtstart?: Date | undefined; interval?: number | undefined; count?: number | undefined; freq?: Frequency | undefined; until?: Date | undefined; tzid?: string | undefined; }' is not assignable to type 'JsonValue | undefined'.
@calcom/api:dev:       Type '{ dtstart?: Date | undefined; interval?: number | undefined; count?: number | undefined; freq?: Frequency | undefined; until?: Date | undefined; tzid?: string | undefined; }' is not assignable to type 'JsonObject'.
@calcom/api:dev:         Property 'dtstart' is incompatible with index signature.
@calcom/api:dev:           Type 'Date' is not assignable to type 'JsonValue | undefined'.
@calcom/api:dev:             Type 'Date' is not assignable to type 'JsonObject'.
@calcom/api:dev:               Index signature for type 'string' is missing in type 'Date'.
@calcom/api:dev: 
@calcom/api:dev:   54 |           .findUnique({ where: { id: safeQuery.data.id } })
@calcom/api:dev:   55 |           .then((data) => schemaEventTypePublic.parse(data))
@calcom/api:dev: > 56 |           .then((event_type) => res.status(200).json({ event_type }))
h
cc @Agusti
p
seeing it again on
Copy code
@calcom/api:dev:               Property 'dtstart' is incompatible with index signature.
@calcom/api:dev:                 Type 'Date' is not assignable to type 'InputJsonValue | null | undefined'.
@calcom/api:dev:                   Type 'Date' is not assignable to type 'InputJsonObject'.
@calcom/api:dev:                     Index signature for type 'string' is missing in type 'Date'.
@calcom/api:dev: 
@calcom/api:dev:    96 |         }
@calcom/api:dev:    97 |         await prisma.eventType
@calcom/api:dev: >  98 |           .update({ where: { id: safeQuery.data.id }, data: safeBody.data })
a
@Patrick DePippo Thanks for reporting, seems like a bug with new feature recurring event, will fix the validations to string or date.
p
👍
theres a few more in the event-type and it also seems to be a problem in the
api/hooks
directory
ty for handling so quikcly!
🙏 1
a
Yes working on fixing the webhooks ones right now, will fix all and report back once updated !
p
you're the best - appreciate it
❤️ 1
a
Fixed and pushed to main! Still working on some stuff on API but build fixed and you can work with your self-hosted instance if you git pull main. Lmk if you have any other issues or still didn’t work (I haven’t fixed the recurringEvent thing, but might have been fixed on other end as Im not getting the error anymore) Appreciate your input.
p
awesome got it running thank you!
❤️ 2