Only set Id on document if it was given
Este commit está contenido en:
padre
4c9459a02b
commit
6c041327be
5
goes.go
5
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()
|
||||
}
|
||||
|
Cargando…
Referencia en una nueva incidencia
Block a user