fix: couldn't get certificate effect time or expire time

This commit is contained in:
Fu Diwei
2025-01-05 01:27:21 +08:00
parent 3c70a4f455
commit 8cf1ffd38b
3 changed files with 5 additions and 4 deletions

View File

@@ -41,7 +41,8 @@ type WorkflowOutputRepository interface {
// 申请节点根据申请类型执行不同的操作
func (a *applyNode) Run(ctx context.Context) error {
a.AddOutput(ctx, a.node.Name, "开始执行")
// 查询是否申请过,已申请过则直接返回(先保持和 v0.2 一致)
// 查询是否申请过,已申请过则直接返回
// TODO: 先保持和 v0.2 一致,后续增加是否强制申请的参数
output, err := a.outputRepo.GetByNodeId(ctx, a.node.Id)
if err != nil && !domain.IsRecordNotFound(err) {
a.AddOutput(ctx, a.node.Name, "查询申请记录失败", err.Error())