Fix booking
This commit is contained in:
parent
19190eb1e0
commit
4bc3af29a0
|
|
@ -84,8 +84,8 @@ class CheckWhetherBookingAvailable(generics.GenericAPIView):
|
|||
|
||||
service_response = self._preprocess_guestonline_response(service.response) \
|
||||
if establishment.guestonline_id is not None \
|
||||
else service.response
|
||||
response.update({'details': service_response} if service and service.response else {})
|
||||
else service.response if service else None
|
||||
response.update({'details': service_response})
|
||||
return Response(data=response, status=200)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user