Expose ski pass flag in listings API and list view
This commit is contained in:
parent
e44b9b9685
commit
8c9265104e
2 changed files with 2 additions and 0 deletions
|
|
@ -163,6 +163,7 @@ export async function GET(req: Request) {
|
|||
hasBarbecue: listing.hasBarbecue,
|
||||
hasMicrowave: listing.hasMicrowave,
|
||||
hasFreeParking: listing.hasFreeParking,
|
||||
hasSkiPass: listing.hasSkiPass,
|
||||
evChargingAvailable: listing.evChargingAvailable,
|
||||
maxGuests: listing.maxGuests,
|
||||
bedrooms: listing.bedrooms,
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ type ListingResult = {
|
|||
hasMicrowave: boolean;
|
||||
hasFreeParking: boolean;
|
||||
evChargingAvailable: boolean;
|
||||
hasSkiPass: boolean;
|
||||
maxGuests: number;
|
||||
bedrooms: number;
|
||||
beds: number;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue