Fix attachments not being saved to db

This commit is contained in:
AlTech98 2021-09-13 17:31:07 +02:00
parent 9b4457424d
commit 12c92a2950

View File

@ -128,7 +128,7 @@ export class Message extends BaseClass {
sticker_items?: Sticker[]; sticker_items?: Sticker[];
@JoinColumn({ name: "attachment_ids" }) @JoinColumn({ name: "attachment_ids" })
@OneToMany(() => Attachment, (attachment: Attachment) => attachment.message) @OneToMany(() => Attachment, (attachment: Attachment) => attachment.message, { cascade: true })
attachments?: Attachment[]; attachments?: Attachment[];
@Column({ type: "simple-json" }) @Column({ type: "simple-json" })