mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-19 10:08:03 +08:00
实现文档编辑
This commit is contained in:
@@ -84,7 +84,7 @@ func (m *Comment) Insert() error {
|
||||
|
||||
document := NewDocument()
|
||||
//如果评论的文档不存在
|
||||
if err := document.Find(m.DocumentId); err != nil {
|
||||
if _,err := document.Find(m.DocumentId); err != nil {
|
||||
return err
|
||||
}
|
||||
book ,err := NewBook().Find(document.BookId);
|
||||
|
Reference in New Issue
Block a user