Fix booking #2
This commit is contained in:
parent
cbe6a25d79
commit
b3d01c8887
|
|
@ -86,6 +86,8 @@ class CheckWhetherBookingAvailable(generics.GenericAPIView):
|
|||
if establishment.guestonline_id is not None \
|
||||
else service.response if service else None
|
||||
response.update({'details': service_response})
|
||||
if service_response is None:
|
||||
response['available'] = False
|
||||
return Response(data=response, status=200)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user