Commit 6cb0e04
authored
fix(pandadoc): resolve list_templates id through the API (#250)
Looking up a template by ID returns an empty result when the template is
not on the first page, because one page is fetched and then filtered
locally.
```
before: list_templates({ id: "tpl_055" }) -> results: []
after: list_templates({ id: "tpl_055" }) -> results: [tpl_055]
```
PandaDoc accepts `id` as a query parameter, so the filter was never
needed.
https://developers.pandadoc.com/reference/list-templates1 parent 8785a4d commit 6cb0e04
2 files changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
91 | | - | |
92 | | - | |
93 | 92 | | |
94 | | - | |
| 93 | + | |
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
| |||
0 commit comments