From de2b02bf79c345e9c1229846484e3184ab43428b Mon Sep 17 00:00:00 2001 From: JMARyA Date: Fri, 3 May 2024 18:50:52 +0200 Subject: [PATCH] fix --- src/item.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/item.rs b/src/item.rs index 64e0159..5ca39ed 100644 --- a/src/item.rs +++ b/src/item.rs @@ -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(); }