Make teams nullable
This commit is contained in:
parent
b74453d802
commit
39f4aa6b70
@ -17,7 +17,6 @@ router.post("/", route({ body: "ApplicationCreateSchema" }), async (req: Request
|
|||||||
name: trimSpecial(body.name),
|
name: trimSpecial(body.name),
|
||||||
description: "",
|
description: "",
|
||||||
bot_public: true,
|
bot_public: true,
|
||||||
bot_require_code_grant: false,
|
|
||||||
owner: user,
|
owner: user,
|
||||||
verify_key: "IMPLEMENTME",
|
verify_key: "IMPLEMENTME",
|
||||||
flags: 0,
|
flags: 0,
|
||||||
|
@ -105,6 +105,7 @@ export class Application extends BaseClass {
|
|||||||
@JoinColumn({ name: "team_id" })
|
@JoinColumn({ name: "team_id" })
|
||||||
@ManyToOne(() => Team, {
|
@ManyToOne(() => Team, {
|
||||||
onDelete: "CASCADE",
|
onDelete: "CASCADE",
|
||||||
|
nullable: true
|
||||||
})
|
})
|
||||||
team?: Team;
|
team?: Team;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user