summary refs log tree commit diff
path: root/util/src/entities/Application.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/Application.ts
parent:sparkles: typeorm api rewrite done (diff)
downloadserver-227a4e47f1ec9bca9b039c7c6761a335bcf622c2.tar.xz
:sparkles: update util
Diffstat (limited to 'util/src/entities/Application.ts')
-rw-r--r--util/src/entities/Application.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/src/entities/Application.ts b/util/src/entities/Application.ts
index 90d0f056..a87b5cea 100644
--- a/util/src/entities/Application.ts
+++ b/util/src/entities/Application.ts
@@ -8,13 +8,13 @@ export class Application extends BaseClass {
 	@Column()
 	name: string;
 
-	@Column()
+	@Column({ nullable: true })
 	icon?: string;
 
 	@Column()
 	description: string;
 
-	@Column("simple-array")
+	@Column({ type: "simple-array", nullable: true })
 	rpc_origins?: string[];
 
 	@Column()
@@ -23,16 +23,16 @@ export class Application extends BaseClass {
 	@Column()
 	bot_require_code_grant: boolean;
 
-	@Column()
+	@Column({ nullable: true })
 	terms_of_service_url?: string;
 
-	@Column()
+	@Column({ nullable: true })
 	privacy_policy_url?: string;
 
 	@Column()
 	owner_id: string;
 
-	@Column()
+	@Column({ nullable: true })
 	summary?: string;
 
 	@Column()
@@ -52,13 +52,13 @@ export class Application extends BaseClass {
 	@ManyToOne(() => Guild, (guild: Guild) => guild.id)
 	guild: Guild; // if this application is a game sold, this field will be the guild to which it has been linked
 
-	@Column()
+	@Column({ nullable: true })
 	primary_sku_id?: string; // if this application is a game sold, this field will be the id of the "Game SKU" that is created,
 
-	@Column()
+	@Column({ nullable: true })
 	slug?: string; // if this application is a game sold, this field will be the URL slug that links to the store page
 
-	@Column()
+	@Column({ nullable: true })
 	cover_image?: string; // the application's default rich presence invite cover image hash
 
 	@Column()