Skip to content

Commit

Permalink
Merge pull request #252 from Black-Dot-2024/fix/RF12-archived-validator
Browse files Browse the repository at this point in the history
fix(RF12): Fixed wrong archived validator
  • Loading branch information
dembA7 authored Jun 6, 2024
2 parents 55e1bd1 + fd2a5b9 commit 38c3b3a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/api/validators/company.validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,7 @@ const companySchema = z.object({
.max(15, { message: 'Landlinephone number must be between 10 and 15 digits long' })
.optional()
.nullable(),
archived: z
.boolean()
.optional()
.nullable()
.refine(value => value === false, {
message: 'Cannot create a project for an archived company.',
}),
archived: z.boolean().optional().nullable(),
constitutionDate: z.string().optional().nullable(),
rfc: zodValidRfc.optional().nullable(),
taxResidence: z
Expand Down

0 comments on commit 38c3b3a

Please sign in to comment.