From e390fa0f61bd99922068ee490a45606214ed6f45 Mon Sep 17 00:00:00 2001 From: Ji-Ha Date: Sun, 24 Jul 2022 19:11:11 +0900 Subject: [PATCH] =?UTF-8?q?[#168]=20fix(=EB=B6=81=EB=A7=88=ED=81=AC=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=EA=B4=80=EB=A0=A8)=20-=20=EB=B6=81?= =?UTF-8?q?=EB=A7=88=ED=81=AC=EA=B0=80=20=EC=B6=94=EA=B0=80=EB=90=A0=20?= =?UTF-8?q?=EB=95=8C,=20=EB=8F=99=EC=9D=BC=ED=95=9C=20url=EC=9D=84=20?= =?UTF-8?q?=EA=B0=80=EC=A7=84=20=EB=B6=81=EB=A7=88=ED=81=AC=EA=B0=80=20?= =?UTF-8?q?=ED=9C=B4=EC=A7=80=ED=86=B5=EC=97=90=20=EC=9E=88=EC=9D=84=20?= =?UTF-8?q?=EA=B2=BD=EC=9A=B0,=20=ED=99=95=EC=8B=A4=ED=95=9C=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=EC=82=AC=ED=95=AD=EC=9D=84=20=EC=9D=B8=EC=A7=80?= =?UTF-8?q?=ED=95=A0=20=EC=88=98=20=EC=9E=88=EB=8F=84=EB=A1=9D=20exception?= =?UTF-8?q?=20=EB=B0=9C=EC=83=9D=EC=8B=9C=ED=82=B4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yapp/web2/domain/bookmark/service/BookmarkService.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/yapp/web2/domain/bookmark/service/BookmarkService.kt b/src/main/kotlin/com/yapp/web2/domain/bookmark/service/BookmarkService.kt index a6458aa8..7dae6130 100644 --- a/src/main/kotlin/com/yapp/web2/domain/bookmark/service/BookmarkService.kt +++ b/src/main/kotlin/com/yapp/web2/domain/bookmark/service/BookmarkService.kt @@ -52,7 +52,10 @@ class BookmarkService( val bookmarkList = bookmarkRepository.findAllByFolderId(folderId) for (savedBookmark in bookmarkList) { - if (savedBookmark.link == bookmark.link) throw SameBookmarkException() + if (savedBookmark.link == bookmark.link) { + if(savedBookmark.deleted) throw RuntimeException("휴지통에 존재하는 북마크와 url이 동일합니다!") + throw SameBookmarkException() + } } }