Skip to content

Commit

Permalink
Merge pull request #200 from YAPP-Github/dev
Browse files Browse the repository at this point in the history
Release 0.1.12
  • Loading branch information
choisohyun authored Jul 30, 2022
2 parents fecf52b + 4c9e593 commit e566659
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib/api/oauth.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import apiClient from '@/lib/api/index';

export const getOauthKakaoAge = async (params: { code: string }) => {
const res = await apiClient.get(`/oauth/kakao/age&code=${params.code}`);
export const getOauthKakaoAge = async (params: { code: string; type: 'dating' | 'meeting' }) => {
const res = await apiClient.get(`/oauth/kakao/age&code=${params.code}?type=${params.type}`);
return res.data;
};
2 changes: 1 addition & 1 deletion src/pages/AgreementSurvey.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const AgreementSurvey = () => {
const searchParams = new URLSearchParams(location.search);
const code = searchParams.get('code') ?? '';

getOauthKakaoAge({ code })
getOauthKakaoAge({ code, type: matchMeeting ? 'meeting' : 'dating' })
.then((response) => {
console.log(response);
meetingNavigate(Path.KakaoIdSurvey);
Expand Down

0 comments on commit e566659

Please sign in to comment.