fix(07): CR-01 rename import return field imported→count to match frontend
Tessera CI/CD / Lint & Type Check (push) Failing after 37s
Tessera CI/CD / Tests (push) Has been skipped
Tessera CI/CD / Build & Deploy (push) Has been skipped

Backend dkv.service.ts returned { imported } but frontend read result.count,
causing the success toast to always display "undefined Fahrzeuge importiert".
Align backend field name to count and update the dkv-api.ts return type to
include mode for completeness.
This commit is contained in:
2026-06-27 17:19:44 +02:00
parent d93819fa27
commit f3f610f9e1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -237,7 +237,7 @@ export async function deleteVehicle(id: string): Promise<void> {
export async function importVehiclesCsv(
file: File,
mode: 'merge' | 'replace',
): Promise<{ count: number }> {
): Promise<{ count: number; mode: string }> {
const form = new FormData();
form.append('file', file);
form.append('mode', mode);