Make business profile address postal code optional.

Allow empty or missing postalCode on profile addresses so saves are not blocked by MinLength validation.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-10-04 18:42:22 +03:30
co-authored by Cursor
parent 6f2ce12c0f
commit d237d00f65
2 changed files with 4 additions and 3 deletions
@@ -71,9 +71,10 @@ class BusinessAddressDto {
@MinLength(1)
address!: string;
@IsOptional()
@IsString()
@MinLength(1)
postalCode!: string;
@MaxLength(20)
postalCode?: string | null;
@IsOptional()
@IsString()