NeoVersion
This commit is contained in:
@@ -3,6 +3,7 @@ package controllers
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
oclib "cloud.o-forge.io/core/oc-lib"
|
||||
@@ -78,6 +79,7 @@ func (o *BookingController) Check() {
|
||||
} else {
|
||||
booking := &b.Booking{} // create a new booking object
|
||||
isAvailable, err2 := booking.CheckBooking(id, date, &date2) // check if the booking is available
|
||||
fmt.Println(isAvailable, err2)
|
||||
code := 200
|
||||
err := ""
|
||||
if !isAvailable {
|
||||
|
||||
Reference in New Issue
Block a user