fix(auto_save): fix auto save return empty id

This commit is contained in:
razeen committed 2021-08-15 03:51:45 -07:00
1 parent 6ff6acdbda
commit cfaa25e123
1 file changed
+3
+3
View File
@@ -283,6 +283,9 @@ func handleAPIPostCreate(c *gin.Context) {
logrus.Error("handleAPIPostCreate.AddArticle: ", err)
return
}
cid = article.ID
if !article.IsDraft {
// 异步执行,快
go func() {