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

@@ -121,7 +121,7 @@ func record2Workflow(record *models.Record) (*domain.Workflow, error) {
HasDraft: record.GetBool("hasDraft"),
LastRunId: record.GetString("lastRunId"),
LastRunStatus: domain.WorkflowRunStatusType(record.GetString("lastRunStatus")),
LastRunTime: record.GetTime("lastRunTime"),
LastRunTime: record.GetDateTime("lastRunTime").Time(),
}
return workflow, nil
}

View File

@@ -81,8 +81,8 @@ func (w *WorkflowOutputRepository) GetCertificateByNodeId(ctx context.Context, n
Certificate: record.GetString("certificate"),
PrivateKey: record.GetString("privateKey"),
IssuerCertificate: record.GetString("issuerCertificate"),
EffectAt: record.GetTime("effectAt"),
ExpireAt: record.GetTime("expireAt"),
EffectAt: record.GetDateTime("effectAt").Time(),
ExpireAt: record.GetDateTime("expireAt").Time(),
ACMECertUrl: record.GetString("acmeCertUrl"),
ACMECertStableUrl: record.GetString("acmeCertStableUrl"),
WorkflowId: record.GetString("workflowId"),