mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
ci: Fix lint warnings in @n8n/chat and @n8n/nodes-langchain (no-changelog) (#7884)
Solve lint warnings shown on all PRs for `@n8n/chat` and `@n8n/nodes-langchain` Example: https://github.com/n8n-io/n8n/pull/7883/files
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { IDataObject, ILoadOptionsFunctions } from 'n8n-workflow';
|
||||
import { ApplicationError, type IDataObject, type ILoadOptionsFunctions } from 'n8n-workflow';
|
||||
import { Pinecone } from '@pinecone-database/pinecone';
|
||||
|
||||
export async function pineconeIndexSearch(this: ILoadOptionsFunctions) {
|
||||
@@ -24,16 +24,18 @@ export async function supabaseTableNameSearch(this: ILoadOptionsFunctions) {
|
||||
|
||||
const results = [];
|
||||
|
||||
const paths = (
|
||||
await this.helpers.requestWithAuthentication.call(this, 'supabaseApi', {
|
||||
headers: {
|
||||
Prefer: 'return=representation',
|
||||
},
|
||||
method: 'GET',
|
||||
uri: `${credentials.host}/rest/v1/`,
|
||||
json: true,
|
||||
})
|
||||
).paths as IDataObject;
|
||||
if (typeof credentials.host !== 'string') {
|
||||
throw new ApplicationError('Expected Supabase credentials host to be a string');
|
||||
}
|
||||
|
||||
const { paths } = (await this.helpers.requestWithAuthentication.call(this, 'supabaseApi', {
|
||||
headers: {
|
||||
Prefer: 'return=representation',
|
||||
},
|
||||
method: 'GET',
|
||||
uri: `${credentials.host}/rest/v1/`,
|
||||
json: true,
|
||||
})) as { paths: IDataObject };
|
||||
|
||||
for (const path of Object.keys(paths)) {
|
||||
//omit introspection path
|
||||
|
||||
Reference in New Issue
Block a user