fix(migration): remove unused error fields from PreviewResult

ErrorCount and Errors fields were never populated by PreviewImport,
making the API contract misleading. Remove them from both the Go
struct and the TypeScript interface.
This commit is contained in:
kolaente
2026-03-05 11:22:35 +01:00
parent 2e677df0d8
commit 1fa65a4f90
2 changed files with 2 additions and 6 deletions

View File

@@ -64,8 +64,6 @@ export interface PreviewTask {
export interface PreviewResult {
tasks: PreviewTask[]
total_rows: number
error_count: number
errors?: string[]
}
export interface MigrationStatus {

View File

@@ -144,10 +144,8 @@ type PreviewTask struct {
// PreviewResult contains preview data before import
type PreviewResult struct {
Tasks []PreviewTask `json:"tasks"`
TotalRows int `json:"total_rows"`
ErrorCount int `json:"error_count"`
Errors []string `json:"errors,omitempty"`
Tasks []PreviewTask `json:"tasks"`
TotalRows int `json:"total_rows"`
}
// stripBOM removes the UTF-8 BOM from the beginning of a reader