update

Changed files
+4 -12
internal
+1 -4
internal/api/handlers.go
··· 739 739 } else { 740 740 return "", fmt.Errorf("operation %d missing raw JSON data", i) 741 741 } 742 - 743 742 // Add newline ONLY between operations 744 - if i < len(ops)-1 { 745 - jsonlData = append(jsonlData, '\n') 746 - } 743 + jsonlData = append(jsonlData, '\n') 747 744 } 748 745 749 746 hash := sha256.Sum256(jsonlData)
+3 -8
internal/plc/bundle.go
··· 526 526 527 527 // Calculate uncompressed hash from operations 528 528 var jsonlData []byte 529 - for i, op := range operations { 530 - lineJSON, _ := json.Marshal(op) 531 - jsonlData = append(jsonlData, lineJSON...) 532 - 533 - // Add newline ONLY if not the last operation 534 - if i < len(operations)-1 { 535 - jsonlData = append(jsonlData, '\n') 536 - } 529 + for _, op := range operations { 530 + jsonlData = append(jsonlData, op.RawJSON...) 531 + jsonlData = append(jsonlData, '\n') 537 532 } 538 533 uncompressedHash := bm.calculateHash(jsonlData) 539 534