🐛 fix message sticker sending

This commit is contained in:
Flam3rboy committed 2021-10-15 00:03:05 +02:00
1 parent f38ebe65ed
commit d8f77c687e
5 files changed
+18 -4

No files matched your search

+1 -1
View File
@@ -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, {