From 4205dc2b18e26b559d25c28cfff093953f7439ad Mon Sep 17 00:00:00 2001 From: Miroslav Blasko Date: Sun, 21 Jul 2024 16:13:05 +0200 Subject: [PATCH] [#184] Implement detached import through TSV I.e. import that is fully implemented by external service. In this case database is modified by separate service. --- src/actions/RecordsActions.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/actions/RecordsActions.js b/src/actions/RecordsActions.js index 55a4cb1..25ca357 100644 --- a/src/actions/RecordsActions.js +++ b/src/actions/RecordsActions.js @@ -93,6 +93,8 @@ export function importRecords(file) { apiUrl = `${API_URL}/rest/records/import/json`; } else if (["xls", "xlsx"].includes(fileExtension)) { apiUrl = `${API_URL}/rest/records/import/excel`; + } else if (["tsv"].includes(fileExtension)) { + apiUrl = `${API_URL}/rest/records/import/tsv`; } else { const error = new Error("Unsupported file format"); dispatch(asyncError(ActionConstants.IMPORT_RECORDS_ERROR, error));