瀏覽代碼

Only set Id on document if it was given

tags/v1.0.0
Marin Bek 9 年之前
父節點
當前提交
6c041327be
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. +4
    -1
      goes.go

+ 4
- 1
goes.go 查看文件

@@ -478,8 +478,11 @@ func (c *Connection) Update(d Document, query map[string]interface{}, extraArgs
ExtraArgs: extraArgs,
method: "POST",
api: "_update",
id: d.Id.(string),
}

if d.Id != nil {
r.id = d.Id.(string)
}

return r.Run()
}

Loading…
取消
儲存