mirror of
https://github.com/usual2970/certimate.git
synced 2025-10-05 14:04:54 +00:00
handle exit logic
This commit is contained in:
@@ -94,16 +94,16 @@ func (w *WorkflowRepository) SaveRun(ctx context.Context, run *domain.WorkflowRu
|
||||
}
|
||||
|
||||
// unable trigger sse using DB()
|
||||
wordflowRecord, err := txDao.FindRecordById("workflow", run.WorkflowId)
|
||||
workflowRecord, err := txDao.FindRecordById("workflow", run.WorkflowId)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
wordflowRecord.Set("lastRunId", record.GetId())
|
||||
wordflowRecord.Set("lastRunStatus", record.GetString("status"))
|
||||
wordflowRecord.Set("lastRunTime", record.GetString("startedAt"))
|
||||
workflowRecord.Set("lastRunId", record.GetId())
|
||||
workflowRecord.Set("lastRunStatus", record.GetString("status"))
|
||||
workflowRecord.Set("lastRunTime", record.GetString("startedAt"))
|
||||
|
||||
return txDao.SaveRecord(wordflowRecord)
|
||||
return txDao.SaveRecord(workflowRecord)
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user