Skip to content

Commit

Permalink
fix: lint - added type and description
Browse files Browse the repository at this point in the history
  • Loading branch information
blakmatrix committed Aug 1, 2024
1 parent 8654236 commit 89d5587
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/clients/core/ticketfields.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class TicketFields extends Client {

/**
* Lists all ticket fields with locale.
* @param {string} locale - The locale code to filter ticket fields (e.g., 'sv' for Swedish).
* @returns {Promise<Array<TicketField>>}} Returns an array of ticket fields by locale.
* @async
* @throws {Error} Throws an error if the request fails.
Expand All @@ -70,7 +71,7 @@ class TicketFields extends Client {
* const fields = await client.ticketfields.listWithLocale('sv');
*/
async listWithLocale(locale) {
return this.getAll(['ticket_fields', { locale }]);
return this.getAll(['ticket_fields', {locale}]);
}

/**
Expand Down

0 comments on commit 89d5587

Please sign in to comment.