mobile styling, update updated_at

master
Josha von Gizycki 7 days ago
parent 8e4b400193
commit c7c1ad5a0b

@ -47,14 +47,16 @@ interface DocumentDao: Repository<Document, DocumentId> {
""" """
UPDATE t_document UPDATE t_document
SET name = :name, SET name = :name,
description = :description description = :description,
updated_at = :updatedAt
WHERE id = :id WHERE id = :id
""" """
) )
fun edit( fun edit(
id: DocumentId, id: DocumentId,
name: DocumentName, name: DocumentName,
description: DocumentDescription description: DocumentDescription,
updatedAt: ZonedDateTime
) )
@Modifying @Modifying

@ -3,6 +3,7 @@ package wanijo.wanijo2.domain.handler
import org.springframework.stereotype.Service import org.springframework.stereotype.Service
import wanijo.wanijo2.domain.DocumentDao import wanijo.wanijo2.domain.DocumentDao
import wanijo.wanijo2.domain.event.EditDocumentCommand import wanijo.wanijo2.domain.event.EditDocumentCommand
import java.time.ZonedDateTime
@Service @Service
class EditDocumentHandler( class EditDocumentHandler(
@ -13,7 +14,8 @@ class EditDocumentHandler(
documentDao.edit( documentDao.edit(
id = command.id, id = command.id,
name = command.name, name = command.name,
description = command.description description = command.description,
updatedAt = ZonedDateTime.now()
) )
} }

@ -3,7 +3,7 @@ body {
--light-grey: #858585; --light-grey: #858585;
--warning: #ce0000; --warning: #ce0000;
margin: 0 5rem; margin: 0 3%;
font-family: sans-serif; font-family: sans-serif;
a:link, a:visited { a:link, a:visited {
@ -39,6 +39,7 @@ main {
display: flex; display: flex;
justify-content: center; justify-content: center;
flex-wrap: wrap;
dd { dd {
margin-left: .3rem; margin-left: .3rem;

Loading…
Cancel
Save