Skip to content

Commit

Permalink
fix:修复批量创建索引重复BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoK29 committed Jun 14, 2022
1 parent edd294a commit 10199ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/controller/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func AddIndex(c *gin.Context) {

// BatchAddIndex 批量添加索引
func BatchAddIndex(c *gin.Context) {
documents := make([]model.IndexDoc, 0)
documents := make([]*model.IndexDoc, 0)
if err := c.BindJSON(&documents); err != nil {
ResponseErrorWithMsg(c, err.Error())
return
Expand Down

0 comments on commit 10199ee

Please sign in to comment.