Skip to content

Commit

Permalink
[frontend] Fix url for exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimfacion committed Aug 30, 2024
1 parent f902de8 commit b7b6ab8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openbas-front/src/actions/exercises/exercise-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const searchExerciseInjects = (exerciseId: Exercise['exercise_id'], searc
// -- IMPORT --

export const importXlsForExercise = (exerciseId: Exercise['exercise_id'], importId: string, input: InjectsImportInput) => {
const uri = `${EXERCISE_URI}/${exerciseId}/xls/${importId}/import`;
const uri = `${EXERCISE_URI}${exerciseId}/xls/${importId}/import`;
return simplePostCall(uri, input)
.then((response) => {
const injectCount = response.data.total_injects;
Expand All @@ -50,7 +50,7 @@ export const importXlsForExercise = (exerciseId: Exercise['exercise_id'], import
};

export const dryImportXlsForExercise = (exerciseId: Exercise['exercise_id'], importId: string, input: InjectsImportInput) => {
const uri = `${EXERCISE_URI}/${exerciseId}/xls/${importId}/dry`;
const uri = `${EXERCISE_URI}${exerciseId}/xls/${importId}/dry`;
return simplePostCall(uri, input)
.then((response) => {
return response;
Expand Down

0 comments on commit b7b6ab8

Please sign in to comment.