diff options
author | Teddy Wing | 2018-11-09 20:47:37 +0100 |
---|---|---|
committer | Teddy Wing | 2018-11-09 20:47:37 +0100 |
commit | 408f663a2f5d179954856d3a8374faf6c01f074e (patch) | |
tree | cce5cff82e0a3d3a1b00600549f514b7e1818eb1 | |
parent | d7baf68d21a34e51b3ff193fc2d7513c7c270e6c (diff) | |
download | dome-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.
-rw-r--r-- | license-generator/src/purchaser.rs | 2 |
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(()) } } |