diff --git a/server/datastore/database/commit.go b/server/datastore/database/commit.go index 3ad6e2c37..ac743e69a 100644 --- a/server/datastore/database/commit.go +++ b/server/datastore/database/commit.go @@ -122,7 +122,7 @@ WHERE c.repo_id = r.repo_id AND r.repo_id = p.repo_id AND p.user_id = ? GROUP BY r.repo_id -) ORDER BY c.commit_created DESC LIMIT 5; +) ORDER BY c.commit_created DESC; ` // SQL query to retrieve the ungrouped, latest Commits @@ -144,7 +144,7 @@ LIMIT 20 const commitListQuery = ` SELECT * FROM commits -WHERE repo_id = ? +WHERE repo_id = ? ORDER BY commit_id DESC LIMIT 20 `