Fix guild delete failing when template exists

This commit is contained in:
Madeline
2023-01-13 22:38:55 +11:00
parent f544c6890c
commit 43a0260cd8
4 changed files with 70 additions and 1 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ export class Template extends BaseClass {
source_guild_id: string;
@JoinColumn({ name: "source_guild_id" })
@ManyToOne(() => Guild)
@ManyToOne(() => Guild, { onDelete: "CASCADE" })
source_guild: Guild;
@Column({ type: "simple-json" })