base draft

This commit is contained in:
mr
2026-03-16 10:59:31 +01:00
parent 48f034316b
commit a86e78841b
2 changed files with 4 additions and 3 deletions

View File

@@ -129,7 +129,8 @@ func (d *Booking) VerifyAuth(callName string, request *tools.APIRequest) bool {
} }
func (r *Booking) StoreDraftDefault() { func (r *Booking) StoreDraftDefault() {
r.IsDraft = false r.IsDraft = true
r.State = enum.DRAFT
} }
func (r *Booking) CanUpdate(set utils.DBObject) (bool, utils.DBObject) { func (r *Booking) CanUpdate(set utils.DBObject) (bool, utils.DBObject) {

View File

@@ -44,8 +44,8 @@ type WorkflowExecution struct {
} }
func (r *WorkflowExecution) StoreDraftDefault() { func (r *WorkflowExecution) StoreDraftDefault() {
r.IsDraft = false // TODO: TEMPORARY r.IsDraft = true
r.State = enum.SCHEDULED r.State = enum.DRAFT
} }
func (r *WorkflowExecution) CanUpdate(set utils.DBObject) (bool, utils.DBObject) { func (r *WorkflowExecution) CanUpdate(set utils.DBObject) (bool, utils.DBObject) {