From 408f663a2f5d179954856d3a8374faf6c01f074e Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 9 Nov 2018 20:47:37 +0100 Subject: Purchaser::insert(): Commit the transaction I had forgotten to commit the transaction, so the record I was trying to insert wouldn't get persisted in the database. --- license-generator/src/purchaser.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/license-generator/src/purchaser.rs b/license-generator/src/purchaser.rs index cf777d3..d189c11 100644 --- a/license-generator/src/purchaser.rs +++ b/license-generator/src/purchaser.rs @@ -61,6 +61,8 @@ impl<'a> Purchaser<'a> { }, } + tx.commit()?; + Ok(()) } } -- cgit v1.2.3