booking debug
This commit is contained in:
@@ -137,9 +137,10 @@ func (o *BookingController) Post() {
|
||||
json.Unmarshal(o.Ctx.Input.CopyBody(10000), &resp)
|
||||
dc_id := resp.ResourceID
|
||||
// delete all previous bookings
|
||||
fmt.Println("Deleting previous bookings", resp)
|
||||
res := oclib.Search(&dbs.Filters{And: map[string][]dbs.Filter{
|
||||
"workflowexecution.workflow_id": {{Operator: dbs.EQUAL.String(), Value: resp.WorkflowID}},
|
||||
"datacenter_resource_id": {{Operator: dbs.EQUAL.String(), Value: dc_id}},
|
||||
"compute_resource_id": {{Operator: dbs.EQUAL.String(), Value: dc_id}},
|
||||
}}, "", oclib.LibDataEnum(oclib.BOOKING))
|
||||
if res.Code != 200 {
|
||||
o.Data["json"] = map[string]interface{}{
|
||||
|
||||
Reference in New Issue
Block a user