Skip to content

Commit 3a5a918

Browse files
authored
Merge pull request #150 from GonggakSim/feature/122/errorHandling
#122 console.log 및 필요 없는 주석, 코드 제거
2 parents 8ed4e9d + ede17f2 commit 3a5a918

5 files changed

Lines changed: 1 addition & 12 deletions

File tree

src/controllers/exam.controller.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export const handleAddExam = async (
1515
res: Response,
1616
next: NextFunction
1717
) => {
18-
console.log("사용자 캘린더 시험 추가 요청");
1918
try {
2019
const examData = bodyToExam(req.body);
2120
const exam = await addExamService(examData);
@@ -38,7 +37,6 @@ export const handleGetExam = async (
3837
res: Response,
3938
next: NextFunction
4039
): Promise<void> => {
41-
console.log("사용자 캘린더 시험 조회 요청");
4240

4341
try {
4442
const userId = Number(req.query.userId); // 쿼리 파라미터에서 userId 추출
@@ -71,7 +69,6 @@ export const handleDeleteExam = async (
7169
res: Response,
7270
next: NextFunction
7371
): Promise<void> => {
74-
console.log("사용자 캘린더 시험 삭제 요청");
7572

7673
try {
7774
const examId = Number(req.params.examId); // url 파라미터에서 시험 id 추출

src/controllers/notification.controller.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ export const handleDnDNotification = async (
88
res: Response,
99
next: NextFunction
1010
): Promise<void> => {
11-
console.log("방해 금지 시간 알림 설정");
12-
1311
const notificationService = new NotificationService();
1412

1513
try {
@@ -30,7 +28,6 @@ export const handleDnDNotification = async (
3028
message: "Notification settings saved successfully",
3129
data: result,
3230
});
33-
console.log(data);
3431
} catch (error: any) {
3532
console.error("에러 발생:", error);
3633
next(error);

src/controllers/schedule.controller.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ export const handleRecommendSchedule = async (
1111
res: Response,
1212
next: NextFunction
1313
) => {
14-
console.log("AI 시험 일정 추천 함수 호출");
15-
console.log("body: ", req.body);
16-
1714
try {
1815
// 요청 본문을 DTO로 변환
1916
const dto = recommendScheduleDto(req.body);

src/services/certification.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export const searchCertifications = async ({
1818
searchQuery,
1919
searchCategory ?? undefined
2020
);
21-
console.log("서비스에서 자격증: ");
22-
console.log(certifications);
21+
2322
return responseFromCertifications(certifications);
2423
};

src/services/exam.service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { InvalidDataError } from "../errors.js";
1414
export const addExamService = async (data: Exam) => {
1515
// FCM 토큰 처리
1616
if (!data.fcmToken) {
17-
// data.fcmToken = await getUserFcmToken(data.userId);
1817
const fetchedToken = await getUserFcmToken(data.userId);
1918

2019
// FCM 토큰 업데이트 (기존과 다를때만)

0 commit comments

Comments
 (0)