Skip to content

Commit

Permalink
Hard code template request count
Browse files Browse the repository at this point in the history
Temprary workaround until request pagination is implemented
  • Loading branch information
derekrushforth committed Sep 30, 2020
1 parent 4f395bd commit b153e83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/templates/pull.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const fetchTemplateList = (options: TemplateListOptions) => {
}

client
.getTemplates()
.getTemplates({ count: 300 })
.then(response => {
if (response.TotalCount === 0) {
spinner.stop()
Expand Down
2 changes: 1 addition & 1 deletion src/commands/templates/push.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const push = (serverToken: string, args: TemplatePushArguments) => {
if (manifest.length > 0) {
// Get template list from Postmark
client
.getTemplates()
.getTemplates({ count: 300 })
.then(response => {
compareTemplates(response, manifest)

Expand Down

0 comments on commit b153e83

Please sign in to comment.