fix: allow int for profileId
This commit is contained in:
@@ -6,7 +6,7 @@ export const zTrackPayload = z
|
|||||||
.object({
|
.object({
|
||||||
name: z.string().min(1),
|
name: z.string().min(1),
|
||||||
properties: z.record(z.unknown()).optional(),
|
properties: z.record(z.unknown()).optional(),
|
||||||
profileId: z.string().optional(),
|
profileId: z.string().or(z.number()).optional(),
|
||||||
})
|
})
|
||||||
.refine((data) => !RESERVED_EVENT_NAMES.includes(data.name as any), {
|
.refine((data) => !RESERVED_EVENT_NAMES.includes(data.name as any), {
|
||||||
message: `Event name cannot be one of the reserved names: ${RESERVED_EVENT_NAMES.join(', ')}`,
|
message: `Event name cannot be one of the reserved names: ${RESERVED_EVENT_NAMES.join(', ')}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user