chore: endpoint key 수정
This commit is contained in:
@@ -36,7 +36,7 @@ function ModifyPage({ serial }: { serial: string }) {
|
||||
});
|
||||
|
||||
const { data: postHistory } = useQuery({
|
||||
queryKey: [ENDPOINT.CMS_SERVICE.SITE_PSTGS, serial],
|
||||
queryKey: [ENDPOINT.CMS_SERVICE.POSTINGS, serial],
|
||||
queryFn: () => PostingApi.getPostingHistory({ pstgTrgtNo: Number(serial) }),
|
||||
});
|
||||
|
||||
@@ -58,7 +58,7 @@ function ModifyPage({ serial }: { serial: string }) {
|
||||
mutationFn: (data: WithModePost[]) => PostingApi.requestPosting(data),
|
||||
onSuccess: () => {
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: [ENDPOINT.CMS_SERVICE.SITE_PSTGS, serial],
|
||||
queryKey: [ENDPOINT.CMS_SERVICE.POSTINGS, serial],
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
@@ -8,7 +8,7 @@ import type {
|
||||
export class OrganizationApiService implements OrganizationService {
|
||||
public async getOrganizationUserTreeList(): Promise<Organization[]> {
|
||||
const response = await client.get<Organization[]>(
|
||||
`${ENDPOINT.CMS_SERVICE.USER_OGNZ}/treeuser`,
|
||||
`${ENDPOINT.CMS_SERVICE.USER_ORGANIZATION}/treeuser`,
|
||||
);
|
||||
return response.data;
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ function OrganizationSearchDialog({
|
||||
);
|
||||
|
||||
const { data: treeData } = useQuery({
|
||||
queryKey: [ENDPOINT.CMS_SERVICE.USER_OGNZ],
|
||||
queryKey: [ENDPOINT.CMS_SERVICE.USER_ORGANIZATION],
|
||||
queryFn: () => OrganizationApi.getOrganizationUserTreeList(),
|
||||
select: (data) => generateOrganizationTreeData(data),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user