feat(api): Rename importCsv to importUniversalCsv for clarity and documentation
All checks were successful
Deploy Development / deploy (push) Successful in 55s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 15s

- 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.
This commit is contained in:
Lars 2026-04-10 06:05:19 +02:00
parent 851018b3b9
commit 66979f3f51

View File

@ -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)