diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-03 22:53:01 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-03 22:53:01 +0200 |
commit | 48c1a155680d5471190ea116e29e9816e86ad8a9 (patch) | |
tree | 09b486ff559bdf702de82852fb88bcf48c6a3287 /util/src/entities/Message.ts | |
parent | Merge pull request #411 from afeuerstein/master (diff) | |
download | server-48c1a155680d5471190ea116e29e9816e86ad8a9.tar.xz |
:bug: fix message reactions
Diffstat (limited to '')
-rw-r--r-- | util/src/entities/Message.ts | 6 |
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" }) |