Fixing linting issues using 'yarn lint-fix'

This commit is contained in:
Darien Kindlund
2024-01-03 13:35:25 -05:00
parent e88859f5d4
commit 66701cec8a
@@ -71,8 +71,7 @@ class Airtable_DocumentLoaders implements INode {
placeholder: 'Name, Assignee', placeholder: 'Name, Assignee',
optional: true, optional: true,
additionalParams: true, additionalParams: true,
description: description: 'Comma-separated list of field names to exclude'
'Comma-separated list of field names to exclude'
}, },
{ {
label: 'Return All', label: 'Return All',
@@ -116,7 +115,7 @@ class Airtable_DocumentLoaders implements INode {
baseId, baseId,
tableId, tableId,
viewId, viewId,
excludeFieldNames: excludeFieldNames ? excludeFieldNames.split(',').map(id => id.trim()) : [], excludeFieldNames: excludeFieldNames ? excludeFieldNames.split(',').map((id) => id.trim()) : [],
returnAll, returnAll,
accessToken, accessToken,
limit: limit ? parseInt(limit, 10) : 100 limit: limit ? parseInt(limit, 10) : 100
@@ -223,12 +222,12 @@ class AirtableLoader extends BaseDocumentLoader {
private createDocumentFromPage(page: AirtableLoaderPage): Document { private createDocumentFromPage(page: AirtableLoaderPage): Document {
// Generate the URL // Generate the URL
const pageUrl = `https://api.airtable.com/v0/${this.baseId}/${this.tableId}/${page.id}` const pageUrl = `https://api.airtable.com/v0/${this.baseId}/${this.tableId}/${page.id}`
const fields = { ...page.fields }; const fields = { ...page.fields }
// Exclude any specified fields // Exclude any specified fields
this.excludeFieldNames.forEach(id => { this.excludeFieldNames.forEach((id) => {
delete fields[id]; delete fields[id]
}); })
// Return a langchain document // Return a langchain document
return new Document({ return new Document({