From 1b8c9ccaeb167e4c033c2459c37121b98e08e8dc Mon Sep 17 00:00:00 2001 From: eee4 <41441600+eee4@users.noreply.github.com> Date: Mon, 1 Dec 2025 17:26:54 +0100 Subject: [PATCH] fix: add type hints for nullable columns --- src/entities/Link.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/entities/Link.ts b/src/entities/Link.ts index ddba40a..fe06e04 100644 --- a/src/entities/Link.ts +++ b/src/entities/Link.ts @@ -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 }