From 881b914c6a7bdf73ed16194e71aa779b27de074e Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Wed, 18 Aug 2021 22:04:04 +0900 Subject: チャンネルを作成しているとアカウントを削除できないのを修正 (#7653) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * チャンネルを作成しているとアカウントを削除できないのを修正 * CHANGELOG * nullable --- src/models/entities/channel.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/models/entities') diff --git a/src/models/entities/channel.ts b/src/models/entities/channel.ts index 1868f75143..f2d713612d 100644 --- a/src/models/entities/channel.ts +++ b/src/models/entities/channel.ts @@ -23,9 +23,10 @@ export class Channel { @Index() @Column({ ...id(), + nullable: true, comment: 'The owner ID.' }) - public userId: User['id']; + public userId: User['id'] | null; @ManyToOne(type => User, { onDelete: 'SET NULL' -- cgit v1.2.3-freya