summary refs log tree commit diff
path: root/util/src/entities/Channel.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-29 00:03:58 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-29 00:03:58 +0200
commit227a4e47f1ec9bca9b039c7c6761a335bcf622c2 (patch)
tree356056aa999e2b7b2d8b2e5094c98e63fa1bd2d2 /util/src/entities/Channel.ts
parent:sparkles: typeorm api rewrite done (diff)
downloadserver-227a4e47f1ec9bca9b039c7c6761a335bcf622c2.tar.xz
:sparkles: update util
Diffstat (limited to 'util/src/entities/Channel.ts')
-rw-r--r--util/src/entities/Channel.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/src/entities/Channel.ts b/util/src/entities/Channel.ts
index d26f1054..d02cedb4 100644
--- a/util/src/entities/Channel.ts
+++ b/util/src/entities/Channel.ts
@@ -60,25 +60,25 @@ export class Channel extends BaseClass {
 	@ManyToOne(() => User, (user: User) => user.id)
 	owner: User;
 
-	@Column()
+	@Column({ nullable: true })
 	last_pin_timestamp?: number;
 
-	@Column()
+	@Column({ nullable: true })
 	default_auto_archive_duration?: number;
 
 	@Column()
 	position: number;
 
-	@Column("simple-json")
+	@Column({ type: "simple-json" })
 	permission_overwrites: ChannelPermissionOverwrite[];
 
-	@Column()
+	@Column({ nullable: true })
 	video_quality_mode?: number;
 
-	@Column()
+	@Column({ nullable: true })
 	bitrate?: number;
 
-	@Column()
+	@Column({ nullable: true })
 	user_limit?: number;
 
 	@Column()
@@ -87,7 +87,7 @@ export class Channel extends BaseClass {
 	@Column()
 	rate_limit_per_user: number;
 
-	@Column()
+	@Column({ nullable: true })
 	topic?: string;
 }