Skip to content

Commit

Permalink
모임삭제 코리반영
Browse files Browse the repository at this point in the history
  • Loading branch information
j-nary committed Nov 13, 2024
1 parent 7182a21 commit 7a34695
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/api/API_LEGACY/meeting/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,8 @@ export const useQueryGetMeetingPeopleList = ({
});
};

export const useMutationDeleteMeeting = ({
useMutationOptions,
}: UseMutateBody<number>): UseMutationResult<{ statusCode: number }, AxiosError, number> => {
return useMutation<{ statusCode: number }, AxiosError, number>({
export const useMutationDeleteMeeting = ({ useMutationOptions }: UseMutateBody<number>) => {
return useMutation({
...useMutationOptions,
mutationKey: ['deleteMeeting'],
mutationFn: deleteMeeting,
Expand Down
4 changes: 2 additions & 2 deletions src/api/API_LEGACY/meeting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ export const getMeetingPeopleList = async ({ id, ...rest }: OptionData): Promise
).data.data;
};

export const deleteMeeting = async (id: number): Promise<{ statusCode: number }> => {
return (await api.delete<{ statusCode: number }>(`/meeting/v2/${id}`)).data;
export const deleteMeeting = async (id: number) => {
return (await api.delete(`/meeting/v2/${id}`)).data;
};

export const postApplication = async (body: PostApplicationRequest): Promise<{ statusCode: number }> => {
Expand Down

0 comments on commit 7a34695

Please sign in to comment.