From 7710cf98db5912860662f6fc2219bba6394f3572 Mon Sep 17 00:00:00 2001 From: PedroAntunesCosta <47991446+PedroAntunesCosta@users.noreply.github.com> Date: Mon, 17 Jun 2024 15:12:22 -0300 Subject: [PATCH] Update zendesk.ts --- node/clients/zendesk.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/clients/zendesk.ts b/node/clients/zendesk.ts index 7cc3170..f605b4f 100644 --- a/node/clients/zendesk.ts +++ b/node/clients/zendesk.ts @@ -19,8 +19,8 @@ export default class ZendeskClient extends ExternalClient { }) } - public async getComments(ticketId: string) { - const url = `https://vtexhelp1704480599.zendesk.com/api/v2/tickets/${ticketId}/comments.json` + public async getComments(ticketId: string, page: number=1) { + const url = `https://vtexhelp1704480599.zendesk.com/api/v2/tickets/${ticketId}/comments.json?page=${page}` return this.http.get( url,