Skip to content

Commit

Permalink
[#184] Implement detached import through TSV
Browse files Browse the repository at this point in the history
I.e. import that is fully implemented by external service. In this case database is modified by separate service.
  • Loading branch information
blcham committed Jul 21, 2024
1 parent 79f36e3 commit 4205dc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/actions/RecordsActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 4205dc2

Please sign in to comment.