浏览代码

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()
}

正在加载...
取消
保存