mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
fix lints
This commit is contained in:
parent
bb1141d4bb
commit
6545f58e25
|
@ -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');
|
||||||
|
|
|
@ -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');
|
||||||
|
|
|
@ -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'],
|
||||||
|
|
Loading…
Reference in a new issue