From 66979f3f51a21ba51999ae6a780be1ba2a7c814c Mon Sep 17 00:00:00 2001 From: Lars Date: Fri, 10 Apr 2026 06:05:19 +0200 Subject: [PATCH] feat(api): Rename importCsv to importUniversalCsv for clarity and documentation - Updated the function name from importCsv to importUniversalCsv to better reflect its purpose. - Added documentation comment to clarify the parameters used in the universal CSV import process. --- frontend/src/utils/api.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/utils/api.js b/frontend/src/utils/api.js index 6bb3eee..753390e 100644 --- a/frontend/src/utils/api.js +++ b/frontend/src/utils/api.js @@ -489,7 +489,8 @@ export const api = { req(module ? `/csv/mappings?module=${encodeURIComponent(module)}` : '/csv/mappings'), copyCsvMapping: (mappingId, body = null) => req(`/csv/mappings/${mappingId}/copy`, body ? json(body) : { method: 'POST' }), - importCsv: async (file, module, mappingId) => { + /** Universal-CSV (Issue #21): file + module + mapping_id aus /csv/mappings */ + importUniversalCsv: async (file, module, mappingId) => { const fd = new FormData() fd.append('file', file) fd.append('module', module)