Browse Source

fix: remove company_name as parameter

pull/4/head
wahyun 5 months ago
parent
commit
086749098d
  1. 3
      edit-mode/function/ganttConfig.js
  2. 1
      edit-mode/function/reportActivity.js

3
edit-mode/function/ganttConfig.js

@ -4,8 +4,7 @@ const proyekId = getUrlParameter("proyek_id");
const timestamp = getUrlParameter("timestamp"); const timestamp = getUrlParameter("timestamp");
let base_url = getUrlParameter("base_url"); let base_url = getUrlParameter("base_url");
const role_name = getUrlParameter("role_name"); const role_name = getUrlParameter("role_name");
const company_name = getUrlParameter("company_name"); const base_url_image = `https://project-api.ospro.id/assets/`;
const base_url_image = `https://project-api.ospro.id/assets/${company_name}/`;
const ganttName = getUrlParameter("gantt_name"); const ganttName = getUrlParameter("gantt_name");
// const base_url_image = `http://localhost:8444/generic-ospro-backend/assets/${company_name}/`; // const base_url_image = `http://localhost:8444/generic-ospro-backend/assets/${company_name}/`;
const adwIntegrationUrl = "https://adw-api.ospro.id/api"; const adwIntegrationUrl = "https://adw-api.ospro.id/api";

1
edit-mode/function/reportActivity.js

@ -448,7 +448,6 @@ $(document).ready(function () {
imageFormData.append("ref_id", reportId); imageFormData.append("ref_id", reportId);
imageFormData.append("category", "report_activity"); imageFormData.append("category", "report_activity");
imageFormData.append("files", image, image.name); imageFormData.append("files", image, image.name);
imageFormData.append("company_name", company_name);
if (image.name && image.size) { if (image.name && image.size) {
await axiosInstanceMultipart.post(`${base_url}image/upload`, imageFormData); await axiosInstanceMultipart.post(`${base_url}image/upload`, imageFormData);

Loading…
Cancel
Save