...
|
...
|
@@ -93,6 +93,10 @@ func (rs *EvaluationTemplateService) Create(in *command.CreateTemplateCommand) ( |
|
|
State: domain.TemplateStateWaitConfig,
|
|
|
LinkNodes: linkNodes,
|
|
|
}
|
|
|
if in.State > domain.TemplateStateWaitConfig {
|
|
|
newTemplate.State = in.State
|
|
|
}
|
|
|
|
|
|
template, err := templateRepository.Insert(newTemplate)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
...
|
...
|
|