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-16 20:49:07 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-16 20:49:07 +0200
commit1cd4b819171f9bbadb00b2e87d1a710ead355f95 (patch)
treee66bff65da570bd9d3c4c247ae84b4826bb302e6 /util/src/entities/Webhook.ts
parentMerge branch 'master' of https://github.com/fosscord/fosscord-api (diff)
downloadserver-1cd4b819171f9bbadb00b2e87d1a710ead355f95.tar.xz
Revert ":construction: webhook"
This reverts commit f691aa4c5aa47c8a8085c7b01912a1c403ce8732.
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 d0d98804..12ba0d08 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()
-	name: string;
+	@Column({ nullable: true })
+	name?: string;
 
 	@Column({ nullable: true })
 	avatar?: string;
 
-	@Column({ nullable: true, select: false })
+	@Column({ nullable: true })
 	token?: string;
 
 	@Column({ nullable: true })