|
|
|
@ -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()
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|