Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
fix(projects): Get projects based on last activity
Browse files Browse the repository at this point in the history
TODO: Handle pagination
  • Loading branch information
ahmadalfy committed Feb 5, 2020
1 parent a197430 commit 2c595a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ class Groups extends Base {
}

static loadGroupProjects(groupId) {
const data = { simple: true }
const data = {
simple: true,
order_by: 'last_activity_at',
per_page: 500,
}
const searchParams = new URLSearchParams(data).toString();
return Utilities.req(`${routes.groups}/${groupId}/${routes.projects}`, searchParams);
}
Expand Down

0 comments on commit 2c595a8

Please sign in to comment.