|
|
@@ -1,5 +1,5 @@
|
|
|
import { Entity, PrimaryGeneratedColumn, Column, ManyToOne, JoinColumn } from 'typeorm';
|
|
|
-import { UserEntity } from '@d8d/user-module';
|
|
|
+import type { UserEntity } from '@d8d/user-module';
|
|
|
import process from 'node:process';
|
|
|
import { MinioService } from '../services/minio.service';
|
|
|
|
|
|
@@ -57,7 +57,7 @@ export class File {
|
|
|
@Column({ name: 'upload_user_id', type: 'int', unsigned: true })
|
|
|
uploadUserId!: number;
|
|
|
|
|
|
- @ManyToOne(() => UserEntity)
|
|
|
+ @ManyToOne('UserEntity')
|
|
|
@JoinColumn({ name: 'upload_user_id', referencedColumnName: 'id' })
|
|
|
uploadUser!: UserEntity;
|
|
|
|