Skip to content

Commit 9d106de

Browse files
fix: birthday being undefined (#23)
* fix: birthday being undefined * fix: add test
1 parent b5dd292 commit 9d106de

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/infrastructure/factorial-client/schema/Employee.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const Employee = z.object({
2323
preferredName: z.string().nullable(),
2424
pronouns: z.string().nullable(),
2525
regularAccessStartsOn: z.string().nullable(),
26-
showBirthday: z.boolean(),
26+
showBirthday: z.boolean().optional(),
2727
supervisedByCurrent: z.boolean(),
2828
tenureStartDate: z.string().nullable(),
2929
terminatedOn: z.string().nullable(),

test/fixtures/employees.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@
267267
"regularAccessStartsOn": "2019-10-04",
268268
"irpf": null,
269269
"pronouns": null,
270-
"showBirthday": true,
271270
"permissions": {
272271
"hirings": {
273272
"read": true,

0 commit comments

Comments
 (0)