[FIX] pms-api-rest: swap createHour -> createDate @ folio short info (datamodel)

This commit is contained in:
miguelpadin
2023-12-20 11:53:21 +01:00
committed by Darío Lodeiros
parent a9e5f72927
commit 240d96a79a
2 changed files with 2 additions and 2 deletions

View File

@@ -75,4 +75,4 @@ class PmsFolioShortInfo(Datamodel):
saleChannelId = fields.Integer(required=False, allow_none=True)
firstCheckin = fields.String(required=False, allow_none=True)
lastCheckout = fields.String(required=False, allow_none=True)
createHour = fields.String(required=False, allow_none=True)
createDate = fields.String(required=False, allow_none=True)

View File

@@ -716,7 +716,7 @@ class PmsDashboardServices(Component):
else None,
firstCheckin=str(folio.first_checkin),
lastCheckout=str(folio.last_checkout),
createHour=folio.create_date.strftime("%H:%M"),
createDate=folio.create_date.isoformat(),
)
)
return result_folios