new
This commit is contained in:
@@ -102,7 +102,8 @@ func (o *BookingController) Post() {
|
||||
json.Unmarshal(o.Ctx.Input.CopyBody(10000), &resp)
|
||||
dc_id := resp.ResourceID
|
||||
res := oclib.Search(&dbs.Filters{And: map[string][]dbs.Filter{
|
||||
"datacenter_resource_id": {{Operator: dbs.EQUAL.String(), Value: dc_id}},
|
||||
"workflowexecution.workflow_id": {{Operator: dbs.EQUAL.String(), Value: resp.WorkflowID}},
|
||||
"datacenter_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