Skip to content

Commit

Permalink
Nick:
Browse files Browse the repository at this point in the history
  • Loading branch information
nickscamara committed Mar 19, 2024
1 parent 3879c61 commit eeaca38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/providers/Zendesk/zendesk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand All @@ -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,
Expand Down

0 comments on commit eeaca38

Please sign in to comment.