summary refs log tree commit diff
path: root/util
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-03 22:53:01 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-03 22:53:01 +0200
commit48c1a155680d5471190ea116e29e9816e86ad8a9 (patch)
tree09b486ff559bdf702de82852fb88bcf48c6a3287 /util
parentMerge pull request #411 from afeuerstein/master (diff)
downloadserver-48c1a155680d5471190ea116e29e9816e86ad8a9.tar.xz
:bug: fix message reactions
Diffstat (limited to 'util')
-rw-r--r--util/src/entities/Message.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/util/src/entities/Message.ts b/util/src/entities/Message.ts
index c4901693..04c3c7aa 100644
--- a/util/src/entities/Message.ts
+++ b/util/src/entities/Message.ts
@@ -74,9 +74,7 @@ export class Message extends BaseClass {
 	author_id: string;
 
 	@JoinColumn({ name: "author_id", referencedColumnName: "id" })
-	@ManyToOne(() => User, {
-		onDelete: "CASCADE",
-	})
+	@ManyToOne(() => User)
 	author?: User;
 
 	@Column({ nullable: true })
@@ -120,7 +118,7 @@ export class Message extends BaseClass {
 	mention_everyone?: boolean;
 
 	@JoinTable({ name: "message_user_mentions" })
-	@ManyToMany(() => User, { orphanedRowAction: "delete", onDelete: "CASCADE", cascade: true })
+	@ManyToMany(() => User)
 	mentions: User[];
 
 	@JoinTable({ name: "message_role_mentions" })