diff --git a/src/api/family.ts b/src/api/family.ts index 1a51936..fec2784 100644 --- a/src/api/family.ts +++ b/src/api/family.ts @@ -24,12 +24,12 @@ type ResponseRefreshFamilyCode = { code: string; }; -async function postSurvey(param: ParamRefreshFamilyCode) { +async function refreshFamilyCode(param: ParamRefreshFamilyCode) { const apiUrl = createUrl(familyApis.refreshFamilyCode, { param }); - return await kyInstance.post(apiUrl).json(); + return await kyInstance.patch(apiUrl).json(); } -export { getFamilyCode, postSurvey }; +export { getFamilyCode, refreshFamilyCode }; export type { ParamGetFamilyCode, ResponseGetFamilyCode,