Limit API to only return 1 build

This commit is contained in:
Jake Howard 2016-02-24 17:59:57 +00:00
parent 064e2b426e
commit 29229af50f

View File

@ -29,7 +29,7 @@ export async function getProjects() {
export async function getProjectRecentBuilds(user, repo) { export async function getProjectRecentBuilds(user, repo) {
const CIToken = await token.get(); const CIToken = await token.get();
const url = endpoints.get('PROJECT_RECENTS').param({ user, repo }); const url = endpoints.get('PROJECT_RECENTS').param({ user, repo }).query({ limit: 1});
return await request( return await request(
url, url,
GET, GET,