From 7f9dccef5a72ca76095f3217037cfa7b0f1ff09d Mon Sep 17 00:00:00 2001 From: kchaeeun Date: Thu, 22 Aug 2024 17:31:14 +0900 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20[REFACTOR]=20sender?= =?UTF-8?q?=EC=99=80=20receiver=EC=97=90=20=EB=8F=99=EC=9D=BC=ED=95=9C=20u?= =?UTF-8?q?ser=20=EC=A0=95=EB=B3=B4=EA=B0=80=20=EC=A0=80=EC=9E=A5=EB=90=98?= =?UTF-8?q?=EB=8D=98=20=EC=98=A4=EB=A5=98=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/example/majorLink/domain/User.java | 2 +- .../majorLink/service/NotificationServiceImpl.java | 2 +- majorLink/src/main/resources/application.yml | 11 ++++++----- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/majorLink/src/main/java/com/example/majorLink/domain/User.java b/majorLink/src/main/java/com/example/majorLink/domain/User.java index 86c98fc..3e051e2 100644 --- a/majorLink/src/main/java/com/example/majorLink/domain/User.java +++ b/majorLink/src/main/java/com/example/majorLink/domain/User.java @@ -31,7 +31,7 @@ public class User extends BaseEntity{ @Column(nullable = false, length = 20) private String nickname; - @Column(nullable = false, length = 8) + @Column(nullable = false, length = 10) private String birth; @Column(nullable = false) diff --git a/majorLink/src/main/java/com/example/majorLink/service/NotificationServiceImpl.java b/majorLink/src/main/java/com/example/majorLink/service/NotificationServiceImpl.java index 2c71c8f..85036a1 100644 --- a/majorLink/src/main/java/com/example/majorLink/service/NotificationServiceImpl.java +++ b/majorLink/src/main/java/com/example/majorLink/service/NotificationServiceImpl.java @@ -60,7 +60,7 @@ public void send(User sender, Long lectureId, String content) { Lecture lecture = lectureRepository.findById(lectureId) .orElseThrow(() -> new IllegalArgumentException("존재하지 않는 강의입니다.")); - Notification notification = notificationRepository.save(createNotification(lecture.getUser(), lectureId, content)); + Notification notification = notificationRepository.save(createNotification(sender, lectureId, content)); UUID receiverId = lecture.getUser().getId(); Map sseEmitters = emitterRepository.findAllEmitterStartWithByUserId(receiverId); // 알림 받는 사람 아이디 diff --git a/majorLink/src/main/resources/application.yml b/majorLink/src/main/resources/application.yml index d4d417e..6cb778c 100644 --- a/majorLink/src/main/resources/application.yml +++ b/majorLink/src/main/resources/application.yml @@ -42,17 +42,18 @@ spring: data: redis: - host: ${REDIS_AWS_ENDPOINT} + host: localhost port: 6379 database: 1 server: port: 8080 http2: - enabled: true - tomcat: - threads: - max: 200 + enabled: false +# tomcat: +# threads: +# max: 200 + logging: level: