Skip to content

Commit 8e9c598

Browse files
authored
fix: Accept both string and number for ActivityEvent id field (#356)
1 parent 65ba4b5 commit 8e9c598

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/types/entities.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,10 @@ export const ActivityEventSchema = z
457457
objectId: z.string(),
458458
eventType: z.string(),
459459
eventDate: z.string(),
460-
id: z.string().nullable(),
460+
id: z
461+
.union([z.string(), z.number()])
462+
.transform((val) => val?.toString() ?? null)
463+
.nullable(),
461464
parentProjectId: z.string().nullable(),
462465
parentItemId: z.string().nullable(),
463466
initiatorId: z.string().nullable(),

0 commit comments

Comments
 (0)