diff --git a/models/booking/booking.go b/models/booking/booking.go index bf005cc..3843bba 100644 --- a/models/booking/booking.go +++ b/models/booking/booking.go @@ -129,7 +129,8 @@ func (d *Booking) VerifyAuth(callName string, request *tools.APIRequest) bool { } func (r *Booking) StoreDraftDefault() { - r.IsDraft = false + r.IsDraft = true + r.State = enum.DRAFT } func (r *Booking) CanUpdate(set utils.DBObject) (bool, utils.DBObject) { diff --git a/models/workflow_execution/workflow_execution.go b/models/workflow_execution/workflow_execution.go index 42b0d59..3eb864b 100755 --- a/models/workflow_execution/workflow_execution.go +++ b/models/workflow_execution/workflow_execution.go @@ -44,8 +44,8 @@ type WorkflowExecution struct { } func (r *WorkflowExecution) StoreDraftDefault() { - r.IsDraft = false // TODO: TEMPORARY - r.State = enum.SCHEDULED + r.IsDraft = true + r.State = enum.DRAFT } func (r *WorkflowExecution) CanUpdate(set utils.DBObject) (bool, utils.DBObject) {