From 39f4aa6b704e42830d3d56f3ae989e33c36db6be Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Wed, 10 Aug 2022 16:07:01 +0200 Subject: Make teams nullable --- src/api/routes/applications/index.ts | 1 - src/util/entities/Application.ts | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit 1.4.1