Skip to content

Commit

Permalink
fix: miss typo
Browse files Browse the repository at this point in the history
  • Loading branch information
timepresent95 committed Aug 20, 2024
1 parent 61e066e commit 3b88480
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/family.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<ResponseRefreshFamilyCode>();
return await kyInstance.patch(apiUrl).json<ResponseRefreshFamilyCode>();
}

export { getFamilyCode, postSurvey };
export { getFamilyCode, refreshFamilyCode };
export type {
ParamGetFamilyCode,
ResponseGetFamilyCode,
Expand Down

0 comments on commit 3b88480

Please sign in to comment.