Skip to content

Commit

Permalink
fix: mise a jour effectif v2 model (#3808)
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Gaucher <[email protected]>
  • Loading branch information
Pomarom and Pomarom authored Aug 14, 2024
1 parent 9b72998 commit b07ac73
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,14 @@ exports[`validation-schema should create validation schema for effectifV2: effec
"date_de_naissance": {
"anyOf": [
{
"bsonType": "date",
"anyOf": [
{
"bsonType": "date",
},
{
"bsonType": "string",
},
],
},
{
"bsonType": "null",
Expand Down
2 changes: 1 addition & 1 deletion shared/models/data/v2/effectif.v2.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const zEffectifV2Computed = z
.object({
nom: z.string().nullish(),
prenom: z.string().nullish(),
date_de_naissance: z.date().nullish(),
date_de_naissance: z.union([z.date(), z.string()]).nullish(),
})
.nullish();
export const zEffectifV2 = z.object({
Expand Down

0 comments on commit b07ac73

Please sign in to comment.