mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-31 00:37:10 +02:00
fix build
This commit is contained in:
parent
bab9ab5b28
commit
cb97ba1352
|
|
@ -15,11 +15,11 @@ import type { INode } from 'n8n-workflow';
|
|||
import { JsonColumn, WithTimestampsAndStringId, dbType } from './abstract-entity';
|
||||
import { type Folder } from './folder';
|
||||
import type { SharedWorkflow } from './shared-workflow';
|
||||
import type { TagEntity } from './tag-entity';
|
||||
import { TagEntity } from './tag-entity';
|
||||
import type { TestRun } from './test-run.ee';
|
||||
import type { ISimplifiedPinData, IWorkflowDb } from './types-db';
|
||||
import type { WorkflowStatistics } from './workflow-statistics';
|
||||
import type { WorkflowTagMapping } from './workflow-tag-mapping';
|
||||
import { WorkflowTagMapping } from './workflow-tag-mapping';
|
||||
import { objectRetriever, sqlite } from '../utils/transformers';
|
||||
|
||||
@Entity()
|
||||
|
|
@ -69,7 +69,7 @@ export class WorkflowEntity extends WithTimestampsAndStringId implements IWorkfl
|
|||
})
|
||||
meta?: WorkflowFEMeta;
|
||||
|
||||
@ManyToMany('TagEntity', 'workflows')
|
||||
@ManyToMany(() => TagEntity, 'workflows')
|
||||
@JoinTable({
|
||||
name: 'workflows_tags', // table name for the junction table of this relation
|
||||
joinColumn: {
|
||||
|
|
@ -83,7 +83,7 @@ export class WorkflowEntity extends WithTimestampsAndStringId implements IWorkfl
|
|||
})
|
||||
tags?: TagEntity[];
|
||||
|
||||
@OneToMany('WorkflowTagMapping', 'workflows')
|
||||
@OneToMany(() => WorkflowTagMapping, 'workflows')
|
||||
tagMappings: WorkflowTagMapping[];
|
||||
|
||||
@OneToMany('SharedWorkflow', 'workflow')
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { Column, Entity, ManyToOne, PrimaryColumn } from '@n8n/typeorm';
|
||||
|
||||
import { DateTimeColumn } from './abstract-entity';
|
||||
import { StatisticsNames } from './types-db';
|
||||
import type { StatisticsNames } from './types-db';
|
||||
import { WorkflowEntity } from './workflow-entity';
|
||||
|
||||
@Entity()
|
||||
|
|
@ -18,7 +18,7 @@ export class WorkflowStatistics {
|
|||
@PrimaryColumn({ length: 128 })
|
||||
name: StatisticsNames;
|
||||
|
||||
@ManyToOne('WorkflowEntity', 'shared')
|
||||
@ManyToOne(() => WorkflowEntity, 'shared')
|
||||
workflow: WorkflowEntity;
|
||||
|
||||
@PrimaryColumn()
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ export class ChatHubAgent extends WithTimestamps {
|
|||
/**
|
||||
* The selected credential to use by default with the selected LLM provider (if applicable).
|
||||
*/
|
||||
@ManyToOne('CredentialsEntity', { onDelete: 'SET NULL', nullable: true })
|
||||
@ManyToOne(() => CredentialsEntity, { onDelete: 'SET NULL', nullable: true })
|
||||
@JoinColumn({ name: 'credentialId' })
|
||||
credential?: CredentialsEntity | null;
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import {
|
|||
PrimaryGeneratedColumn,
|
||||
} from '@n8n/typeorm';
|
||||
|
||||
import { ChatHubMessage } from './chat-hub-message.entity';
|
||||
import type { ChatHubMessage } from './chat-hub-message.entity';
|
||||
|
||||
@Entity({ name: 'chat_hub_sessions' })
|
||||
export class ChatHubSession extends WithTimestamps {
|
||||
|
|
@ -100,6 +100,6 @@ export class ChatHubSession extends WithTimestamps {
|
|||
/**
|
||||
* All messages that belong to this chat session.
|
||||
*/
|
||||
@OneToMany(() => ChatHubMessage, 'session')
|
||||
@OneToMany('ChatHubMessage', 'session')
|
||||
messages?: Relation<ChatHubMessage[]>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user