From 677926b8364923f6ebfe2b26c42c07e617d0b6f9 Mon Sep 17 00:00:00 2001 From: Eduard-Constantin Ibinceanu Date: Fri, 20 Dec 2024 19:10:27 +0200 Subject: [PATCH] Format file --- .../src/document_loaders/web/airtable.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libs/langchain-community/src/document_loaders/web/airtable.ts b/libs/langchain-community/src/document_loaders/web/airtable.ts index 091d0219d91c..be570e7a2759 100644 --- a/libs/langchain-community/src/document_loaders/web/airtable.ts +++ b/libs/langchain-community/src/document_loaders/web/airtable.ts @@ -124,7 +124,9 @@ export class AirtableLoader extends BaseDocumentLoader { * @param offset - An optional string representing the offset for pagination. * @returns A record containing the combined properties of `kwargs` and the provided offset. */ - private constructRequestBody(offset?: string): Record { return { ...this.kwargs, offset }; } + private constructRequestBody(offset?: string): Record { + return { ...this.kwargs, offset }; + } /** * Sends the API request to Airtable and handles the response. @@ -134,16 +136,18 @@ export class AirtableLoader extends BaseDocumentLoader { * @returns A promise that resolves to an AirtableResponse object. * @throws Will throw an error if the Airtable API request fails. */ - private async fetchRecords(body: Record): Promise { + private async fetchRecords( + body: Record + ): Promise { const url = `${AirtableLoader.BASE_URL}/${this.baseId}/${this.tableId}`; try { const response = await fetch(url, { method: "POST", headers: { Authorization: `Bearer ${this.apiToken}`, - "Content-Type": "application/json" + "Content-Type": "application/json", }, - body: JSON.stringify(body) + body: JSON.stringify(body), }); if (!response.ok) {