This commit is contained in:
Liang Ding 2023-01-27 16:48:42 +08:00
parent 258acc1142
commit a3940c220f
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
5 changed files with 25 additions and 30 deletions

View file

@ -377,7 +377,7 @@ func createDoc(c *gin.Context) {
}
}
err := model.CreateDocByMd(notebook, p, title, md, sorts)
tree, err := model.CreateDocByMd(notebook, p, title, md, sorts)
if nil != err {
ret.Code = -1
ret.Msg = err.Error()
@ -386,13 +386,6 @@ func createDoc(c *gin.Context) {
}
box := model.Conf.Box(notebook)
tree, err := model.LoadTree(box.ID, p)
if nil != err {
ret.Code = -1
ret.Msg = err.Error()
return
}
pushCreate(box, p, tree.Root.ID, arg)
}