chore: endpoint key 수정

This commit is contained in:
2025-04-07 13:53:17 +09:00
parent 0e7c59f084
commit 3a8039c5d2
5 changed files with 9 additions and 9 deletions
@@ -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),
});