summary refs log tree commit diff
path: root/util/src/entities/Webhook.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-14 22:15:55 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-14 22:15:55 +0200
commitdf2b83ac158be1e7233d8edce59033c15c193599 (patch)
treef818af80b70d0cd54bea2694d483b816a6979702 /util/src/entities/Webhook.ts
parentfix #129 (diff)
downloadserver-df2b83ac158be1e7233d8edce59033c15c193599.tar.xz
:construction: webhook
Diffstat (limited to 'util/src/entities/Webhook.ts')
-rw-r--r--util/src/entities/Webhook.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/src/entities/Webhook.ts b/util/src/entities/Webhook.ts
index 12ba0d08..d0d98804 100644
--- a/util/src/entities/Webhook.ts
+++ b/util/src/entities/Webhook.ts
@@ -18,13 +18,13 @@ export class Webhook extends BaseClass {
 	@Column({ type: "simple-enum", enum: WebhookType })
 	type: WebhookType;
 
-	@Column({ nullable: true })
-	name?: string;
+	@Column()
+	name: string;
 
 	@Column({ nullable: true })
 	avatar?: string;
 
-	@Column({ nullable: true })
+	@Column({ nullable: true, select: false })
 	token?: string;
 
 	@Column({ nullable: true })