Skip to content

Commit

Permalink
fix: do not require query parameter to be specified for getVersions
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeolun committed Jul 10, 2024
1 parent dcb3c1d commit 00e99ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jira.ts
Original file line number Diff line number Diff line change
Expand Up @@ -530,13 +530,13 @@ export class JiraApi {
* @param project - A project key to get versions for
* @param query - An object containing the query params
*/
getVersions(project: string, query: Pick<PaginationParams, "expand">) {
getVersions(project: string, query?: Partial<Pick<PaginationParams, "expand">>) {
return this.doRequest(
this.makeRequestHeader(
this.makeUri({
pathname: `/project/${project}/versions`,
query: {
expand: query.expand?.join(","),
expand: query?.expand?.join(","),
},
}),
),
Expand Down

0 comments on commit 00e99ce

Please sign in to comment.