fix: kpi granularity column update to NULL

This commit is contained in:
2024-01-23 20:15:45 +08:00
parent 413f0b4951
commit 5e4183cebc
4 changed files with 21 additions and 6 deletions

View File

@@ -117,7 +117,7 @@ func (s *BarProcessor) Execute(data any) (any, error) {
state := new(SystemState)
_ = json.Unmarshal(response.Body(), &state)
var dateStr *string = nil
if state.ExpiryDate != "" {
if state.ExpiryDate != "" && state.ExpiryDate != "-" {
dateStr = &state.ExpiryDate
}
neState := new(dborm.NeState)