make event types return only userId data
This commit is contained in:
1 parent
f9b7cebe37
commit
29666493d6
3 files changed
+70
-39
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user