fix lints

This commit is contained in:
Danny Martini 2025-01-07 15:40:03 +01:00
parent bb1141d4bb
commit 6545f58e25
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
import type { ILoadOptionsFunctions, INodeListSearchResult } from 'n8n-workflow'; import type { ILoadOptionsFunctions, INodeListSearchResult } from 'n8n-workflow';
import type { PostgresNodeCredentials } from '../helpers/interfaces';
import { configurePostgres } from '../../transport'; import { configurePostgres } from '../../transport';
import type { PostgresNodeCredentials } from '../helpers/interfaces';
export async function schemaSearch(this: ILoadOptionsFunctions): Promise<INodeListSearchResult> { export async function schemaSearch(this: ILoadOptionsFunctions): Promise<INodeListSearchResult> {
const credentials = await this.getCredentials<PostgresNodeCredentials>('postgres'); const credentials = await this.getCredentials<PostgresNodeCredentials>('postgres');

View file

@ -1,8 +1,8 @@
import type { ILoadOptionsFunctions, INodePropertyOptions } from 'n8n-workflow'; import type { ILoadOptionsFunctions, INodePropertyOptions } from 'n8n-workflow';
import { configurePostgres } from '../../transport';
import type { PostgresNodeCredentials } from '../helpers/interfaces'; import type { PostgresNodeCredentials } from '../helpers/interfaces';
import { getTableSchema } from '../helpers/utils'; import { getTableSchema } from '../helpers/utils';
import { configurePostgres } from '../../transport';
export async function getColumns(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> { export async function getColumns(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const credentials = await this.getCredentials<PostgresNodeCredentials>('postgres'); const credentials = await this.getCredentials<PostgresNodeCredentials>('postgres');

View file

@ -1,8 +1,8 @@
import type { ILoadOptionsFunctions, ResourceMapperFields, FieldType } from 'n8n-workflow'; import type { ILoadOptionsFunctions, ResourceMapperFields, FieldType } from 'n8n-workflow';
import { configurePostgres } from '../../transport';
import type { PostgresNodeCredentials } from '../helpers/interfaces'; import type { PostgresNodeCredentials } from '../helpers/interfaces';
import { getEnumValues, getEnums, getTableSchema, uniqueColumns } from '../helpers/utils'; import { getEnumValues, getEnums, getTableSchema, uniqueColumns } from '../helpers/utils';
import { configurePostgres } from '../../transport';
const fieldTypeMapping: Partial<Record<FieldType, string[]>> = { const fieldTypeMapping: Partial<Record<FieldType, string[]>> = {
string: ['text', 'varchar', 'character varying', 'character', 'char'], string: ['text', 'varchar', 'character varying', 'character', 'char'],