fix
This commit is contained in:
parent
a8e72efea0
commit
de2b02bf79
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ impl ItemEntry {
|
|||
items.insert_one(doc, None).await.unwrap();
|
||||
} else {
|
||||
items
|
||||
.find_one_and_update(id_of!(&self.name), doc, None)
|
||||
.find_one_and_update(id_of!(&self.name), doc! { "$set": doc }, None)
|
||||
.await
|
||||
.unwrap();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue