에러 코드 네이밍 변경
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import axios from 'axios';
|
||||
import { API_URL_USER } from '@/shared/api/api-url-user';
|
||||
import { resultify } from '@/shared/lib/resultify';
|
||||
import { CBDCAxiosError } from '@/shared/@types/error';
|
||||
import { NiceAxiosError } from '@/shared/@types/error';
|
||||
import {
|
||||
UserExistsUseridResponse
|
||||
} from '../model/types';
|
||||
@@ -16,8 +16,8 @@ export const userExistsUserid = (usrId: string) => {
|
||||
);
|
||||
};
|
||||
|
||||
export const useUserExistsUseridMutation = (options?: UseMutationOptions<UserExistsUseridResponse, CBDCAxiosError, string>) => {
|
||||
const mutation = useMutation<UserExistsUseridResponse, CBDCAxiosError, string>({
|
||||
export const useUserExistsUseridMutation = (options?: UseMutationOptions<UserExistsUseridResponse, NiceAxiosError, string>) => {
|
||||
const mutation = useMutation<UserExistsUseridResponse, NiceAxiosError, string>({
|
||||
...options,
|
||||
mutationFn: (usrId: string) => userExistsUserid(usrId),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user