This commit is contained in:
@ -41,7 +41,9 @@ async function enrich(reservation) {
|
|||||||
if (!reservation.propertyId) return reservation;
|
if (!reservation.propertyId) return reservation;
|
||||||
try {
|
try {
|
||||||
const prop = await getRentProperty(reservation.propertyId);
|
const prop = await getRentProperty(reservation.propertyId);
|
||||||
reservation._prop = prop?.propertyInformation ?? prop ?? null;
|
const info = prop?.propertyInformation ?? prop ?? {};
|
||||||
|
if (prop?.allowedPaymentPeriod) info.allowedPaymentPeriod = prop.allowedPaymentPeriod;
|
||||||
|
reservation._prop = info;
|
||||||
} catch { /* skip */ }
|
} catch { /* skip */ }
|
||||||
return reservation;
|
return reservation;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user