1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-22 10:22:39 +01:00

Make teams nullable

This commit is contained in:
TheArcaneBrony 2022-08-10 16:07:01 +02:00 committed by Madeline
parent b74453d802
commit 39f4aa6b70
2 changed files with 1 additions and 1 deletions

View File

@ -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,

View File

@ -105,6 +105,7 @@ export class Application extends BaseClass {
@JoinColumn({ name: "team_id" })
@ManyToOne(() => Team, {
onDelete: "CASCADE",
nullable: true
})
team?: Team;