barname bug

This commit is contained in:
2026-03-08 11:01:56 +03:30
parent ae2b9a4ce1
commit ec04fa6158
3 changed files with 7 additions and 9 deletions
+2 -2
View File
@@ -56,8 +56,8 @@ export class User extends BaseEntity {
//-----------------------------------
@OneToOne(() => Company, (company) => company.user, { orphanRemoval: true })
company!: Company & Opt;
@OneToOne(() => Company, (company) => company.user, { orphanRemoval: true, nullable: true })
company?: Company;
//-----------------------------------