summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-03-19 17:11:21 +0100
committerSanto Cariotti <santo@dcariotti.me>2021-03-19 17:11:21 +0100
commit0fd8cc67f280143e815f1e2e449afa1f17c52a3b (patch)
tree33db70df2a09642eddeb509d3f031d5478046e7f /src
parent7d03f8836de8f4dddb41ce1bf01f23bb683e3904 (diff)
chore: select commit limited to 300
Diffstat (limited to 'src')
-rw-r--r--src/commit/models.rs2
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