fix: add type hints for nullable columns

This commit is contained in:
2025-12-01 17:26:54 +01:00
parent 1e60fc23ab
commit 1b8c9ccaeb

View File

@@ -8,7 +8,7 @@ export class Link {
id: number
@Column({ nullable: true })
subdomain: string
subdomain: string | null
@Column()
shortUri: string
@@ -25,7 +25,7 @@ export class Link {
@Column('bigint')
expiryDate: number
@ManyToOne(() => User, (user) => user.links)
@ManyToOne(() => User, (user) => user.links, { nullable: true })
@JoinTable()
author: User
author: User | null
}