diff --git a/bffhd/users/db.rs b/bffhd/users/db.rs index f852c31..93878f4 100644 --- a/bffhd/users/db.rs +++ b/bffhd/users/db.rs @@ -110,6 +110,7 @@ impl UserDB { let mut txn = self.env.begin_rw_txn()?; let flags = WriteFlags::empty(); self.db.put(&mut txn, &uid.as_bytes(), user, flags)?; + txn.commit()?; Ok(()) }