Hotfix/Broken EventType duplication (#7655)

This commit is contained in:
Hariom Balhara
2023-03-10 19:12:00 +05:30
committed by GitHub
parent ba0e443c52
commit f22bf721f2
@@ -777,6 +777,9 @@ export const eventTypesRouter = router({
webhooks: _webhooks,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
schedule: _schedule,
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/ban-ts-comment
// @ts-ignore - descriptionAsSafeHTML is added on the fly using a prisma middleware it shouldn't be used to create event type. Such a property doesn't exist on schema
descriptionAsSafeHTML: _descriptionAsSafeHTML,
...rest
} = eventType;