mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 13:12:19 +00:00
Do the funny thing (make user->invite cascade delet)
This commit is contained in:
1 parent
ad5248ff97
commit
5e4bbc2e83
1 file changed
+3
-1
@@ -61,7 +61,9 @@ export class Invite extends BaseClassWithoutId {
|
||||
inviter_id?: string;
|
||||
|
||||
@JoinColumn({ name: "inviter_id" })
|
||||
@ManyToOne(() => User)
|
||||
@ManyToOne(() => User, {
|
||||
onDelete: "CASCADE"
|
||||
})
|
||||
inviter: User;
|
||||
|
||||
@Column({ nullable: true })
|
||||
|
||||
Reference in new issue
Block a user