summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-03-18 19:27:18 +0100
committerSanto Cariotti <santo@dcariotti.me>2021-03-18 19:27:18 +0100
commit88a18cbe2a6150b2a611b943fc5a5017b3196aa0 (patch)
tree452812e082a35568a5a8f7e90a32b3335f066f6b /src
parent07475371456740c793d65efe829124eb4bad4780 (diff)
fix: returns the added commits
Diffstat (limited to 'src')
-rw-r--r--src/commit/models.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/commit/models.rs b/src/commit/models.rs
index 7f6a9fc..b2aa2d2 100644
--- a/src/commit/models.rs
+++ b/src/commit/models.rs
@@ -123,6 +123,7 @@ impl Commit {
// Remove the last `,`
let _ = raw_query.pop();
+ raw_query += " RETURNING *";
// TODO: write query with &commits and parameter. Need to implement
// ToSql trait for `Commit` model