From 5ee6535985cdc06c2c2dc20b4916913f7f61d97a Mon Sep 17 00:00:00 2001 From: Viet Anh Nguyen Date: Wed, 7 Feb 2024 11:29:27 +0700 Subject: [PATCH] Pass params in body to make_report API --- cope2n-fe/src/request/report.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cope2n-fe/src/request/report.ts b/cope2n-fe/src/request/report.ts index d12f733..585e7e7 100644 --- a/cope2n-fe/src/request/report.ts +++ b/cope2n-fe/src/request/report.ts @@ -35,11 +35,9 @@ export async function makeReport(params: MakeReportParams) { const { end_date, start_date, subsidiary } = params; try { const response = await API.post(`/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) {