Fixed removing hashed_customer

This commit is contained in:
Jonas Linter
2025-12-03 12:12:37 +01:00
parent ca1f4a010b
commit 8c09094535
2 changed files with 25 additions and 35 deletions

View File

@@ -562,7 +562,6 @@ class ConversionData(BaseModel):
# Foreign key references (nullable - matched after creation)
reservation_id: int | None = Field(None, gt=0)
customer_id: int | None = Field(None, gt=0)
hashed_customer_id: int | None = Field(None, gt=0)
# Required reservation metadata from PMS
hotel_id: str = Field(..., min_length=1, max_length=50)
@@ -591,7 +590,7 @@ class ConversionData(BaseModel):
@field_validator(
"pms_reservation_id", "guest_id", "reservation_id", "customer_id",
"hashed_customer_id", mode="before"
mode="before"
)
@classmethod
def convert_int_fields(cls, v: Any) -> int | None: