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:
parent
b74453d802
commit
39f4aa6b70
@ -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,
|
||||
|
@ -105,6 +105,7 @@ export class Application extends BaseClass {
|
||||
@JoinColumn({ name: "team_id" })
|
||||
@ManyToOne(() => Team, {
|
||||
onDelete: "CASCADE",
|
||||
nullable: true
|
||||
})
|
||||
team?: Team;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user