From eb2bf82d77cc05a42250f6cfb1105fb2fff482c2 Mon Sep 17 00:00:00 2001 From: hynseoj Date: Fri, 15 Nov 2024 15:55:44 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EB=85=B9=EC=9D=8C=20=ED=8C=8C=EC=9D=BC?= =?UTF-8?q?=20=EB=AC=B8=EC=84=9C=20=EC=86=8C=EC=9C=A0=20=EA=B2=80=EC=A6=9D?= =?UTF-8?q?=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/notai/recording/domain/Recording.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/notai/recording/domain/Recording.java b/src/main/java/notai/recording/domain/Recording.java index 20a995f..0c6c804 100644 --- a/src/main/java/notai/recording/domain/Recording.java +++ b/src/main/java/notai/recording/domain/Recording.java @@ -40,7 +40,7 @@ public void updateFilePath(FilePath filePath) { } public void validateDocumentOwnership(Document document) { - if (this.document.getId().equals(document.getId())) { + if (!this.document.getId().equals(document.getId())) { throw new NotFoundException(RECORDING_NOT_FOUND); } }