Skip to content

Commit

Permalink
Fix API_BASE URL in config.json to use the correct hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
horta committed Aug 23, 2023
1 parent 078aa01 commit 015a92c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Query.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const submitJob = (dbId, queryText, handleJobSubmitted) => {
};

axios.post(`${config.API_BASE}/scans/`, data).then((res) => {
const jobId = res.data.id;
const jobId = res.data.job.id;
handleJobSubmitted(
jobId,
data.seqs.map((seq) => seq.name)
Expand Down
2 changes: 1 addition & 1 deletion src/components/Result.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const Result = () => {
setNumResults(response?.data?.length);
});
}
}, [jobState]);
}, [jobState, scanId]);

const finishedAt = jobState
? new Date(1000 * parseInt(jobState?.exec_ended || "0")).toLocaleString()
Expand Down
2 changes: 1 addition & 1 deletion src/config/config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"API_BASE": "http://127.0.0.1",
"API_BASE": "http://deciphon-sched:1515",
"POLLING_INTERVAL_MS": 1000
}

0 comments on commit 015a92c

Please sign in to comment.