Skip to content

Commit

Permalink
correction of backend ip address
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerMaxZ committed Mar 7, 2024
1 parent 15a1445 commit 3b06a61
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ const ActivityPairSelector = ({selectedActivityPair, handleActivityPairChange, a
const onDownload = (type: number, jobId: string) => {
switch (type) {
case 0:
window.location.href = `http://193.40.11.151/assets/results/${jobId}/event_log_transitions_report.csv`;
window.location.href = `http://193.40.11.233/assets/results/${jobId}/event_log_transitions_report.csv`;
break;
case 1:
axios({
url: `http://193.40.11.151/assets/results/${jobId}/event_log_transitions_report.json`,
url: `http://193.40.11.233/assets/results/${jobId}/event_log_transitions_report.json`,
method: 'GET',
responseType: 'blob'
}).then(response => {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const Upload = () => {
try {
const config = {
method: 'post',
url: 'http://193.40.11.151/jobs?' + map_string,
url: 'http://193.40.11.233/jobs?' + map_string,
headers: {
'Content-Type': 'text/csv'
},
Expand All @@ -102,7 +102,7 @@ const Upload = () => {
let counter = 0
let f = setInterval(() => {
axios.get(
'http://193.40.11.151/jobs/' + job.id,
'http://193.40.11.233/jobs/' + job.id,
).then((r: any) => {
let j = r.data
console.log(j.status)
Expand Down
2 changes: 1 addition & 1 deletion src/components/dashboard/overview/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface ChatProps {
jobid: string;
}

const BASE_URL = 'http://193.40.11.151/db-api';
const BASE_URL = 'http://193.40.11.233/db-api';

function renderMarkdown(text: string) {
// Replace markdown headings with HTML headings
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/useFetchData.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useQuery } from 'react-query';

const BASE_URL = "http://193.40.11.151/db-api";
const BASE_URL = "http://193.40.11.233/db-api";

export function useFetchData(endpoint: string) {
const fullUrl = `${BASE_URL}${endpoint}`;
Expand Down

0 comments on commit 3b06a61

Please sign in to comment.