make event types return only userId data

This commit is contained in:
Agusti Fernandez Pardo committed 2022-04-19 05:19:59 +02:00
1 parent f9b7cebe37
commit 29666493d6
3 files changed
+70 -39

No files matched your search

+2 -2
View File
@@ -12,8 +12,8 @@ const schemaEventTypeRequiredParams = z.object({
});
export const schemaEventTypeBodyParams = schemaEventTypeBaseBodyParams.merge(schemaEventTypeRequiredParams);
export const schemaEventTypePublic = EventType.omit({});
// Omitting those two (locations/ metadata) because the validations where choking at array and JSON object. add them later if needed
export const schemaEventTypePublic = EventType.omit({ locations: true, metadata: true });
export const withValidEventType = withValidation({
schema: schemaEventTypeBodyParams,