diff options
author | Santo Cariotti <santo@dcariotti.me> | 2021-03-19 17:11:21 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2021-03-19 17:11:21 +0100 |
commit | 0fd8cc67f280143e815f1e2e449afa1f17c52a3b (patch) | |
tree | 33db70df2a09642eddeb509d3f031d5478046e7f | |
parent | 7d03f8836de8f4dddb41ce1bf01f23bb683e3904 (diff) |
chore: select commit limited to 300
-rw-r--r-- | src/commit/models.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commit/models.rs b/src/commit/models.rs index b2aa2d2..deb2030 100644 --- a/src/commit/models.rs +++ b/src/commit/models.rs @@ -27,7 +27,7 @@ impl Commit { pub async fn find_all(pool: Pool) -> Result<Vec<Commit>, AppError> { let client = get_client(pool.clone()).await.unwrap(); let statement = client - .prepare("SELECT * FROM commit ORDER BY date DESC") + .prepare("SELECT * FROM commit ORDER BY date DESC LIMIT 300") .await?; let commits = client |