Skip to content

Commit

Permalink
fix(best-frontend): Missing parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego committed Feb 7, 2018
1 parent 53c4cf6 commit 6373de4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/best-frontend/server/api_v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function addRoutes(router, store) {
return router;
}

async function getLatestsCommits(gitRepo, retried = false) {
async function getLatestsCommits(gitRepo, size, retried = false) {
const [owner, repo] = gitRepo.split('/');
try {
const { data } = await GIT_ORG_API.repos.getCommits({ owner, repo, per_page: size });
Expand All @@ -130,7 +130,7 @@ async function getLastCommitStats(store, projectName, branch, size = 30) {
const gitRepo = PROJECTS[projectName];
let gitLastCommits = [];
if (GIT_ORG_API && gitRepo) {
const gitCommits = await getLatestsCommits(gitRepo);
const gitCommits = await getLatestsCommits(gitRepo, size);
gitLastCommits = gitCommits.map(c => c.sha.slice(0, 7));
}

Expand Down

0 comments on commit 6373de4

Please sign in to comment.