Fix issue storing

This commit is contained in:
Denis Arh
2021-03-12 13:12:07 +01:00
parent 972d45ef4e
commit 5c5ae24db3
+5 -7
View File
@@ -285,20 +285,18 @@ func (svc *workflow) updater(ctx context.Context, workflowID uint64, action func
return err
}
if changes&workflowChanged > 0 {
if err = store.UpdateAutomationWorkflow(ctx, svc.store, res); err != nil {
return err
}
}
if changes&workflowDefChanged > 0 {
if _, res.Issues = Convert(svc, res); len(res.Issues) == 0 {
if err = svc.triggers.registerWorkflows(ctx, res); err != nil {
return err
}
}
}
if changes&workflowChanged > 0 {
if err = store.UpdateAutomationWorkflow(ctx, svc.store, res); err != nil {
return err
}
}
if changes&workflowLabelsChanged > 0 {