diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-15 00:03:05 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-15 00:03:05 +0200 |
commit | 0ccc478c54f6e6ae8c8e6574e24ab6796738c83a (patch) | |
tree | 5c00a5469e3e3a1c2be788b1138707065bb302bd /util/src/entities | |
parent | :sparkles: sticker upload (diff) | |
download | server-0ccc478c54f6e6ae8c8e6574e24ab6796738c83a.tar.xz |
:bug: fix message sticker sending
Diffstat (limited to 'util/src/entities')
-rw-r--r-- | util/src/entities/Message.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/src/entities/Message.ts b/util/src/entities/Message.ts index 63cd6ad3..a4d38315 100644 --- a/util/src/entities/Message.ts +++ b/util/src/entities/Message.ts @@ -127,7 +127,7 @@ export class Message extends BaseClass { mention_channels: Channel[]; @JoinTable({ name: "message_stickers" }) - @ManyToMany(() => Sticker) + @ManyToMany(() => Sticker, { cascade: true, onDelete: "CASCADE" }) sticker_items?: Sticker[]; @OneToMany(() => Attachment, (attachment: Attachment) => attachment.message, { |