[st] feat: 대시보드 미제출 지표 API 변경 적용
This commit is contained in:
@@ -41,11 +41,14 @@ export function useDashboardUnSubmitCount(
|
||||
params: DashboardSearchParams | null,
|
||||
) {
|
||||
return useQuery({
|
||||
queryKey: createDashboardQueryKey("un-submit-count", params),
|
||||
queryKey: createDashboardQueryKey("submission-status", params),
|
||||
queryFn: async () => {
|
||||
if (!params)
|
||||
throw new Error("Dashboard search params are required.");
|
||||
const response = await dashboardApi.getUnSubmitCount(params);
|
||||
const response = await dashboardApi.getUnSubmitCount({
|
||||
...params,
|
||||
unSubmitOnly: true,
|
||||
});
|
||||
return response.data;
|
||||
},
|
||||
enabled: hasRequiredDashboardParams(params),
|
||||
|
||||
@@ -35,7 +35,7 @@ async function getUnSubmitCount(
|
||||
): Promise<DashboardApiResponse<UnSubmitCountResponse>> {
|
||||
const response = await stClient.get<
|
||||
DashboardApiResponse<UnSubmitCountResponse>
|
||||
>(`${ENDPOINT.ST_SERVICE.DASHBOARD}/un-submit-count`, { params });
|
||||
>(`${ENDPOINT.ST_SERVICE.DASHBOARD}/submission-status`, { params });
|
||||
return response.data;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user