This commit is contained in:
JMARyA 2024-05-03 18:50:52 +02:00
parent a8e72efea0
commit de2b02bf79
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

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