From c6bcd9ca07748e3979a9de2389cb2449b345be00 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Fri, 3 May 2024 19:07:42 +0200 Subject: [PATCH] fix --- src/variant.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/variant.rs b/src/variant.rs index f3be34f..d8157c8 100644 --- a/src/variant.rs +++ b/src/variant.rs @@ -65,6 +65,7 @@ impl Variant { let db = get_mongo!(); let mut ses = db.start_session(None).await.unwrap(); + ses.start_transaction(None).await.unwrap(); let col: mongodb::Collection = ses.client().database("cdb").collection("supply");