aboutsummaryrefslogtreecommitdiffstats
path: root/license-generator/src
diff options
context:
space:
mode:
authorTeddy Wing2018-11-09 20:47:37 +0100
committerTeddy Wing2018-11-09 20:47:37 +0100
commit408f663a2f5d179954856d3a8374faf6c01f074e (patch)
treecce5cff82e0a3d3a1b00600549f514b7e1818eb1 /license-generator/src
parentd7baf68d21a34e51b3ff193fc2d7513c7c270e6c (diff)
downloaddome-key-web-408f663a2f5d179954856d3a8374faf6c01f074e.tar.bz2
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.
Diffstat (limited to 'license-generator/src')
-rw-r--r--license-generator/src/purchaser.rs2
1 files changed, 2 insertions, 0 deletions
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(())
}
}