Pass params in body to make_report API
This commit is contained in:
parent
b5de5d768e
commit
5ee6535985
@ -35,11 +35,9 @@ export async function makeReport(params: MakeReportParams) {
|
|||||||
const { end_date, start_date, subsidiary } = params;
|
const { end_date, start_date, subsidiary } = params;
|
||||||
try {
|
try {
|
||||||
const response = await API.post<MakeReportResponse>(`/ctel/make_report/`, {
|
const response = await API.post<MakeReportResponse>(`/ctel/make_report/`, {
|
||||||
params: {
|
start_date: start_date,
|
||||||
start_date: start_date,
|
end_date: end_date,
|
||||||
end_date: end_date,
|
subsidiary: subsidiary,
|
||||||
subsidiary: subsidiary,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
return response.data;
|
return response.data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user