实现酒店上下文单酒店收口
This commit is contained in:
@@ -152,7 +152,7 @@ function withQuery(path: string, params: object): string {
|
||||
|
||||
function withReservationHotel<T extends { hotel_id?: string }>(filters: T): T {
|
||||
return {
|
||||
hotel_id: getReservationHotelId(),
|
||||
hotel_id: getReservationHotelId() ?? undefined,
|
||||
...filters,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user