Skip to content

Commit

Permalink
Fix restricting number of builds (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
eablack authored Aug 20, 2024
1 parent f7b7db6 commit 6e4c87f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/commands/builds/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default class Index extends Command {
const {flags} = await this.parse(Index)
const {app, num} = flags
const {body: builds} = await this.heroku.get<Heroku.Build[]>(`/apps/${app}/builds`, {
partial: true,
headers: {Range: `created_at ..; max=${num || 15}, order=desc`},
})
ux.styledHeader(`${app} Builds`)
Expand Down

0 comments on commit 6e4c87f

Please sign in to comment.