diff --git a/package.json b/package.json index 6b3d58c..97d2a58 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mendable/data-connectors", - "version": "0.0.45", + "version": "0.0.47", "description": "Data connectors for LLMs. Made by Mendable.ai", "main": "dist/index.js", "module": "dist/index.mjs", diff --git a/src/providers/Zendesk/zendesk.ts b/src/providers/Zendesk/zendesk.ts index 0c4abd1..ad41cef 100644 --- a/src/providers/Zendesk/zendesk.ts +++ b/src/providers/Zendesk/zendesk.ts @@ -81,6 +81,7 @@ export class ZendeskReader { const firstPage = await this.getArticlesPage({ locale, next_page: null }); next_page = firstPage.next_page; + articles = articles.concat(firstPage.articles); while (next_page != null) { const page = await this.getArticlesPage({ locale, next_page }); @@ -105,7 +106,6 @@ export class ZendeskReader { } const response = await axios.get(url); - const articlesPage = { articles: response.data.articles, next_page: response.data.links.next,