Pass params in body to make_report API

This commit is contained in:
Viet Anh Nguyen 2024-02-07 11:29:27 +07:00
parent b5de5d768e
commit 5ee6535985

View File

@ -35,11 +35,9 @@ export async function makeReport(params: MakeReportParams) {
const { end_date, start_date, subsidiary } = params;
try {
const response = await API.post<MakeReportResponse>(`/ctel/make_report/`, {
params: {
start_date: start_date,
end_date: end_date,
subsidiary: subsidiary,
},
start_date: start_date,
end_date: end_date,
subsidiary: subsidiary,
});
return response.data;
} catch (error) {