diff --git a/src/main/kotlin/wanijo/wanijo2/domain/document.kt b/src/main/kotlin/wanijo/wanijo2/domain/document.kt index 18e77e5..1df27cd 100644 --- a/src/main/kotlin/wanijo/wanijo2/domain/document.kt +++ b/src/main/kotlin/wanijo/wanijo2/domain/document.kt @@ -47,14 +47,16 @@ interface DocumentDao: Repository { """ UPDATE t_document SET name = :name, - description = :description + description = :description, + updated_at = :updatedAt WHERE id = :id """ ) fun edit( id: DocumentId, name: DocumentName, - description: DocumentDescription + description: DocumentDescription, + updatedAt: ZonedDateTime ) @Modifying diff --git a/src/main/kotlin/wanijo/wanijo2/domain/handler/EditDocumentHandler.kt b/src/main/kotlin/wanijo/wanijo2/domain/handler/EditDocumentHandler.kt index e15c33c..39bde48 100644 --- a/src/main/kotlin/wanijo/wanijo2/domain/handler/EditDocumentHandler.kt +++ b/src/main/kotlin/wanijo/wanijo2/domain/handler/EditDocumentHandler.kt @@ -3,6 +3,7 @@ package wanijo.wanijo2.domain.handler import org.springframework.stereotype.Service import wanijo.wanijo2.domain.DocumentDao import wanijo.wanijo2.domain.event.EditDocumentCommand +import java.time.ZonedDateTime @Service class EditDocumentHandler( @@ -13,7 +14,8 @@ class EditDocumentHandler( documentDao.edit( id = command.id, name = command.name, - description = command.description + description = command.description, + updatedAt = ZonedDateTime.now() ) } diff --git a/src/main/resources/static/stylesheet.css b/src/main/resources/static/stylesheet.css index bc78dcd..1c6607f 100644 --- a/src/main/resources/static/stylesheet.css +++ b/src/main/resources/static/stylesheet.css @@ -3,7 +3,7 @@ body { --light-grey: #858585; --warning: #ce0000; - margin: 0 5rem; + margin: 0 3%; font-family: sans-serif; a:link, a:visited { @@ -39,6 +39,7 @@ main { display: flex; justify-content: center; + flex-wrap: wrap; dd { margin-left: .3rem;