diff options
author | Santo Cariotti <santo@dcariotti.me> | 2021-03-18 19:27:18 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2021-03-18 19:27:18 +0100 |
commit | 88a18cbe2a6150b2a611b943fc5a5017b3196aa0 (patch) | |
tree | 452812e082a35568a5a8f7e90a32b3335f066f6b | |
parent | 07475371456740c793d65efe829124eb4bad4780 (diff) |
fix: returns the added commits
-rw-r--r-- | src/commit/models.rs | 1 |
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 |