From 88a18cbe2a6150b2a611b943fc5a5017b3196aa0 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Thu, 18 Mar 2021 19:27:18 +0100 Subject: fix: returns the added commits --- src/commit/models.rs | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3-18-g5258