This commit is contained in:
2023-10-25 13:27:00 +05:00
parent 6aac2a1811
commit acb60219d2
3 changed files with 5 additions and 4 deletions
+1
View File
@@ -1,2 +1,3 @@
# VITE_COORD_URL=http://localhost:4000 # VITE_COORD_URL=http://localhost:4000
VITE_COORD_URL=https://coord.graff.tech VITE_COORD_URL=https://coord.graff.tech
VITE_CRM_API_URL=https://crm.stream.graff.tech/api
+1 -1
View File
@@ -27,7 +27,7 @@ function SidebarTab1() {
async function getSchedules() { async function getSchedules() {
try { try {
const result: any[] = await ky const result: any[] = await ky
.get(`http://localhost:3001/schedules/builds/${buildId}`) .get(`${import.meta.env.VITE_CRM_API_URL}/schedules/builds/${buildId}`)
.json(); .json();
setSchedules(result); setSchedules(result);
+2 -2
View File
@@ -44,7 +44,7 @@ function SidebarTab2() {
try { try {
const result: { [key: string]: any } = await ky const result: { [key: string]: any } = await ky
.get( .get(
`http://localhost:3001/schedules/builds/${buildId}?date=${selectedDay.toISOString()}` `${import.meta.env.VITE_CRM_API_URL}/schedules/builds/${buildId}?date=${selectedDay.toISOString()}`
) )
.json(); .json();
@@ -84,7 +84,7 @@ function SidebarTab2() {
const result: any[] = await ky const result: any[] = await ky
.get( .get(
`http://localhost:3001/scheduled_sessions/builds/${buildId}?date=${selectedDay?.toISOString()}` `${import.meta.env.VITE_CRM_API_URL}/scheduled_sessions/builds/${buildId}?date=${selectedDay?.toISOString()}`
) )
.json(); .json();