summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-10 16:07:01 +0200
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-18 23:48:17 +1100
commit30d0c1bd213f224d57e0c9d27dceac4b5b93d6c1 (patch)
tree80ef15661b7ba1d8c2ba8e5f22fa5c3592e19c5d
parentRefactor applications (diff)
downloadserver-30d0c1bd213f224d57e0c9d27dceac4b5b93d6c1.tar.xz
Make teams nullable
-rw-r--r--src/api/routes/applications/index.ts1
-rw-r--r--src/util/entities/Application.ts1
2 files changed, 1 insertions, 1 deletions
diff --git a/src/api/routes/applications/index.ts b/src/api/routes/applications/index.ts
index 70af84e6..94cfa5c5 100644
--- a/src/api/routes/applications/index.ts
+++ b/src/api/routes/applications/index.ts
@@ -17,7 +17,6 @@ router.post("/", route({ body: "ApplicationCreateSchema" }), async (req: Request
 		name: trimSpecial(body.name),
 		description: "",
 		bot_public: true,
-		bot_require_code_grant: false,
 		owner: user,
 		verify_key: "IMPLEMENTME",
 		flags: 0,
diff --git a/src/util/entities/Application.ts b/src/util/entities/Application.ts
index 861c5bdd..67475bdd 100644
--- a/src/util/entities/Application.ts
+++ b/src/util/entities/Application.ts
@@ -105,6 +105,7 @@ export class Application extends BaseClass {
 	@JoinColumn({ name: "team_id" })
 	@ManyToOne(() => Team, {
 		onDelete: "CASCADE",
+		nullable: true
 	})
 	team?: Team;