File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1467,7 +1467,7 @@ export default class Client {
14671467 * @return Promise<Comment[]>
14681468 */
14691469 async loadComments ( ticketId : string , params : Record < string , any > ) {
1470- const { data } = await entities . Comment . query ( ticketId , params ) ;
1470+ const data = await entities . Comment . query ( ticketId , params ) ;
14711471 const page = params . page || 1 ;
14721472 const PAGE_SIZE = 50 ;
14731473 const pages = Math . ceil ( data . count / PAGE_SIZE ) ;
Original file line number Diff line number Diff line change @@ -10,11 +10,9 @@ const paramDefaults = {};
1010const createableField = [ "body" , "ticket_id" , "attachments" , "author_id" ] ;
1111
1212export type CommentsResponse = {
13- data : {
14- comments : Comment [ ] ;
15- count : number ;
16- } & APIObject ;
17- } ;
13+ comments : Comment [ ] ;
14+ count : number ;
15+ } & APIObject ;
1816
1917export class Comment extends Ressource {
2018 id : string ;
You can’t perform that action at this time.
0 commit comments