From 344f6d57d36a82159857a15afb8b248a18814ad3 Mon Sep 17 00:00:00 2001 From: Ethen1264 Date: Mon, 16 Dec 2024 20:58:27 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5Delete:=20console.log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/api/admin/[admin_id]/route.ts | 2 -- src/app/api/expo/[expo_id]/route.ts | 1 - src/app/api/sms/qr/route.ts | 2 -- src/app/api/training/list/[expo_id]/route.ts | 3 +-- src/shared/components/ClientInitializer.tsx | 2 -- src/shared/model/footerActions.ts | 1 - .../application/ui/form/ApplicationForm/standard/index.tsx | 4 ++-- .../application/ui/form/ApplicationForm/trainee/index.tsx | 6 ++---- .../create-exhibition/api/convertAddressToCoordinates.ts | 2 -- src/widgets/create-exhibition/model/useAddressSearch.ts | 1 - 10 files changed, 5 insertions(+), 19 deletions(-) diff --git a/src/app/api/admin/[admin_id]/route.ts b/src/app/api/admin/[admin_id]/route.ts index 4c2eef0..189d20c 100644 --- a/src/app/api/admin/[admin_id]/route.ts +++ b/src/app/api/admin/[admin_id]/route.ts @@ -10,8 +10,6 @@ export async function PATCH( const { admin_id } = params; const cookieStore = cookies(); const accessToken = cookieStore.get('accessToken')?.value; - console.log(admin_id); - console.log(accessToken); try { const response = await apiClient.patch( diff --git a/src/app/api/expo/[expo_id]/route.ts b/src/app/api/expo/[expo_id]/route.ts index ca57275..6d5379a 100644 --- a/src/app/api/expo/[expo_id]/route.ts +++ b/src/app/api/expo/[expo_id]/route.ts @@ -26,7 +26,6 @@ export async function DELETE( const { expo_id } = params; const cookieStore = cookies(); const accessToken = cookieStore.get('accessToken')?.value; - console.log(accessToken); try { const response = await apiClient.delete(`/expo/${expo_id}`, { diff --git a/src/app/api/sms/qr/route.ts b/src/app/api/sms/qr/route.ts index 5939c7f..ed24ae1 100644 --- a/src/app/api/sms/qr/route.ts +++ b/src/app/api/sms/qr/route.ts @@ -15,8 +15,6 @@ export async function POST(request: Request) { } : {}; - console.log('QR Route called with body:', body); - try { const response = await apiClient.post('/sms/qr', body, config); return NextResponse.json(response.data); diff --git a/src/app/api/training/list/[expo_id]/route.ts b/src/app/api/training/list/[expo_id]/route.ts index 1127176..91ea769 100644 --- a/src/app/api/training/list/[expo_id]/route.ts +++ b/src/app/api/training/list/[expo_id]/route.ts @@ -11,8 +11,7 @@ export async function POST( const { expo_id } = params; const cookieStore = cookies(); const accessToken = cookieStore.get('accessToken')?.value; - console.log(expo_id); - console.log(accessToken); + const config = accessToken ? { headers: { diff --git a/src/shared/components/ClientInitializer.tsx b/src/shared/components/ClientInitializer.tsx index 8b8a249..ec61620 100644 --- a/src/shared/components/ClientInitializer.tsx +++ b/src/shared/components/ClientInitializer.tsx @@ -11,9 +11,7 @@ const ClientInitializer: React.FC = () => { const fetchAccessToken = async () => { try { const response = await axios.get('/api/tokenCheck'); - console.log('API response:', response.data); setToken(response.data.accessToken); - console.log('AccessToken from API:', response.data.accessToken); } catch (error) { console.error('Error fetching access token:', error); } diff --git a/src/shared/model/footerActions.ts b/src/shared/model/footerActions.ts index 4a6e11f..827b647 100644 --- a/src/shared/model/footerActions.ts +++ b/src/shared/model/footerActions.ts @@ -18,7 +18,6 @@ export const fileActions = (id: string | number) => ({ export const printActions = (data: UserData[]) => ({ PrintBadge: async (selectItem: number) => { const selectedData = data.find((item) => item.id === selectItem); - console.log(selectedData); if (selectedData) { printBadge(selectedData); } diff --git a/src/widgets/application/ui/form/ApplicationForm/standard/index.tsx b/src/widgets/application/ui/form/ApplicationForm/standard/index.tsx index 10a0e0d..49ef57b 100644 --- a/src/widgets/application/ui/form/ApplicationForm/standard/index.tsx +++ b/src/widgets/application/ui/form/ApplicationForm/standard/index.tsx @@ -42,8 +42,8 @@ const StandardForm = ({ params }: { params: number }) => { authority: 'ROLE_STANDARD', }; - const response = await axios.post('/api/sms/qr', qrBody); - console.log('QR SMS API Response:', response.data); + await axios.post('/api/sms/qr', qrBody); + toast.success('QR이 발송 되었습니다. 문자를 확인 해 주세요.'); router.back(); } catch (error) { diff --git a/src/widgets/application/ui/form/ApplicationForm/trainee/index.tsx b/src/widgets/application/ui/form/ApplicationForm/trainee/index.tsx index f530256..6e5c42b 100644 --- a/src/widgets/application/ui/form/ApplicationForm/trainee/index.tsx +++ b/src/widgets/application/ui/form/ApplicationForm/trainee/index.tsx @@ -51,11 +51,10 @@ const TraineeForm = ({ params }: { params: number }) => { toast.success('신청 되었습니다.'); if (trainingId && selectedValue) { - const result = await TrainingRadioGroup.handleTrainingSubmit( + await TrainingRadioGroup.handleTrainingSubmit( selectedValue, trainingId, ); - console.log('Training Submit Result:', result); } const qrBody = { @@ -63,8 +62,7 @@ const TraineeForm = ({ params }: { params: number }) => { authority: 'ROLE_TRAINEE', }; - const response = await axios.post('/api/sms/qr', qrBody); - console.log('QR SMS API Response:', response.data); + await axios.post('/api/sms/qr', qrBody); toast.success('QR이 발송 되었습니다. 문자를 확인 해 주세요.'); router.back(); } catch (error) { diff --git a/src/widgets/create-exhibition/api/convertAddressToCoordinates.ts b/src/widgets/create-exhibition/api/convertAddressToCoordinates.ts index 55474a3..103836a 100644 --- a/src/widgets/create-exhibition/api/convertAddressToCoordinates.ts +++ b/src/widgets/create-exhibition/api/convertAddressToCoordinates.ts @@ -16,8 +16,6 @@ export const convertAddressToCoordinates = async ( lat: parseFloat(y), lng: parseFloat(x), }; - } else { - console.log('주소 결과가 없습니다.'); } } catch (error) { console.error('주소 변환 오류:', error); diff --git a/src/widgets/create-exhibition/model/useAddressSearch.ts b/src/widgets/create-exhibition/model/useAddressSearch.ts index 069141f..8b569cf 100644 --- a/src/widgets/create-exhibition/model/useAddressSearch.ts +++ b/src/widgets/create-exhibition/model/useAddressSearch.ts @@ -24,7 +24,6 @@ export const useAddressSearch = ( const openAddressSearch = () => { new window.daum.Postcode({ oncomplete: (data: AddressData) => { - console.log(data.address); setValue('address', data.address); }, }).open();