feat: adds availabilitesi and attendees endpoints, some cleanup less try/catch more if/else

This commit is contained in:
Agusti Fernandez Pardo committed 2022-03-27 00:58:22 +01:00
1 parent ac307f7161
commit 936572e7e1
48 files changed
+1365 -172

No files matched your search

+2 -1
View File
@@ -9,7 +9,8 @@ const schemaApiKey = z
expiresAt: z.date().optional(), // default is 30 days
note: z.string().min(1).optional(),
})
.strict(); // Adding strict so that we can disallow passing in extra fields
.strict();
const withValidApiKey = withValidation({
schema: schemaApiKey,
type: "Zod",