cleaned some log

This commit is contained in:
pb
2025-05-27 15:52:59 +02:00
parent 8ee878fee6
commit 922ca1d013
3 changed files with 65 additions and 10 deletions

View File

@@ -41,8 +41,10 @@ func (o *WorkflowSchedulerController) Schedule() {
tools.POST: "/booking/",
},
})
req := oclib.NewRequest(collection, user, peerID, groups, caller)
resp.UUID = uuid.New().String()
sch, err := req.Schedule(id, resp)
if err != nil {
if sch != nil {
@@ -64,7 +66,6 @@ func (o *WorkflowSchedulerController) Schedule() {
"code": code,
"error": e,
}
logger.Info().Msg("Succesfully scheduled " + sch.WorkflowExecution[0].WorkflowID + " at " + sch.WorkflowExecution[0].ExecDate.GoString() + " with ID : " + sch.WorkflowExecution[0].UUID )
o.ServeJSON()
}