fix build

This commit is contained in:
Charlie Kolb 2025-11-13 11:15:54 +01:00
parent bab9ab5b28
commit cb97ba1352
No known key found for this signature in database
4 changed files with 9 additions and 9 deletions

View File

@ -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')

View File

@ -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()

View File

@ -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;

View File

@ -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[]>;
}