From eedc0d1ccdf7d862f250f92a1c63a394297f0ef8 Mon Sep 17 00:00:00 2001 From: Watiah11 Date: Tue, 7 May 2024 15:27:37 +0700 Subject: [PATCH] fix: update end point image --- edit-mode/function/ganttConfig.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/edit-mode/function/ganttConfig.js b/edit-mode/function/ganttConfig.js index 9654313..3cf1ef7 100644 --- a/edit-mode/function/ganttConfig.js +++ b/edit-mode/function/ganttConfig.js @@ -5,7 +5,9 @@ const timestamp = getUrlParameter("timestamp"); let base_url = getUrlParameter("base_url"); const role_name = getUrlParameter("role_name"); const company_id = getUrlParameter("company_id"); -const base_url_image = "https://project-api.ospro.id/assets/image/"; +const company_name = getUrlParameter("company_name"); +const base_url_image = `https://project-api.ospro.id/assets/${company_name}/`; +// const base_url_image = `http://localhost:8444/generic-ospro-backend/assets/${company_name}/`; const adwIntegrationUrl = "https://adw-api.ospro.id/api"; let userToVersionGanttId = 0