edit getList w/out setupID

This commit is contained in:
AlfandiMario
2024-11-12 14:44:41 +07:00
parent 0b04f76f9e
commit aa91585650
6 changed files with 14 additions and 71 deletions

View File

@@ -1 +1 @@
/* Tidak terpakai */
/* Tidak terpakai */

View File

@@ -6,15 +6,13 @@ import { NAME_SPACE } from "./server";
export const getListOutbox = async (
statusOutbox: string,
startDate: string,
endDate: string,
setupID: string
endDate: string
) => {
const url = config.base_url + "mockup/sendwa/sendwa/listoutbox";
logging.info(NAME_SPACE, "\t INFO : " + url);
logging.info(NAME_SPACE, "\t INFO Status Outbox: " + statusOutbox);
logging.info(NAME_SPACE, "\t INFO Start Date: " + startDate);
logging.info(NAME_SPACE, "\t INFO End Date: " + endDate);
logging.info(NAME_SPACE, "\t INFO Setup id: " + setupID);
try {
const resp = await axios.post(
@@ -23,7 +21,6 @@ export const getListOutbox = async (
statusOutbox: statusOutbox,
startDate: startDate,
endDate: endDate,
setupID: setupID,
},
{
headers: { "Content-Type": "application/json; charset=UTF-8" },

View File

@@ -185,9 +185,8 @@ async function getLists(status: string) {
// const statusOutbox = config.statusOutbox;
const startDate = config.startDate;
const endDate = config.endDate;
const setupID = config.mcuID;
var resp = await getListOutbox(statusOutbox, startDate, endDate, setupID);
var resp = await getListOutbox(statusOutbox, startDate, endDate);
if (resp["status"] != "OK") {
logging.error(NAME_SPACE, "\t Error get outbox data", resp);
logging.error(NAME_SPACE, "\t Error: ", resp);