diff --git a/src/main/java/capstone/relation/GoodRelationApplication.java b/src/main/java/capstone/relation/GoodRelationApplication.java index 4b67778..859405c 100644 --- a/src/main/java/capstone/relation/GoodRelationApplication.java +++ b/src/main/java/capstone/relation/GoodRelationApplication.java @@ -1,6 +1,5 @@ package capstone.relation; -import org.bson.Document; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.context.properties.ConfigurationPropertiesScan; diff --git a/src/main/java/capstone/relation/document/controller/DocsController.java b/src/main/java/capstone/relation/document/controller/DocsController.java index 09fb6cb..e314127 100644 --- a/src/main/java/capstone/relation/document/controller/DocsController.java +++ b/src/main/java/capstone/relation/document/controller/DocsController.java @@ -16,9 +16,9 @@ import capstone.relation.document.dto.FileContentDto; import capstone.relation.document.dto.FolderCreateDto; import capstone.relation.document.dto.FolderInfoDto; +import capstone.relation.document.dto.UpdateFileReqDto; import capstone.relation.document.service.DocsService; import capstone.relation.global.util.SecurityUtil; -import capstone.relation.document.dto.UpdateFileReqDto; import io.swagger.v3.oas.annotations.Operation; import lombok.RequiredArgsConstructor; diff --git a/src/main/java/capstone/relation/document/service/DocsService.java b/src/main/java/capstone/relation/document/service/DocsService.java index ca1daa6..205cf97 100644 --- a/src/main/java/capstone/relation/document/service/DocsService.java +++ b/src/main/java/capstone/relation/document/service/DocsService.java @@ -51,6 +51,7 @@ public FolderInfoDto createFolder(String folderName, Long userId) { .folderName(folderName) .build(); } + @Transactional public FolderInfoDto updateFolder(Long folderId, String folderName) { Folder folder = folderRepository.findById(folderId).orElseThrow(() -> new DocumentException(