Skip to content

Commit

Permalink
fix: birthday being undefined (#23)
Browse files Browse the repository at this point in the history
* fix: birthday being undefined

* fix: add test
  • Loading branch information
DanielRamosAcosta committed Apr 1, 2024
1 parent b5dd292 commit 9d106de
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/infrastructure/factorial-client/schema/Employee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const Employee = z.object({
preferredName: z.string().nullable(),
pronouns: z.string().nullable(),
regularAccessStartsOn: z.string().nullable(),
showBirthday: z.boolean(),
showBirthday: z.boolean().optional(),
supervisedByCurrent: z.boolean(),
tenureStartDate: z.string().nullable(),
terminatedOn: z.string().nullable(),
Expand Down
1 change: 0 additions & 1 deletion test/fixtures/employees.json
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@
"regularAccessStartsOn": "2019-10-04",
"irpf": null,
"pronouns": null,
"showBirthday": true,
"permissions": {
"hirings": {
"read": true,
Expand Down

0 comments on commit 9d106de

Please sign in to comment.