Fix attachments not being saved to db
This commit is contained in:
parent
9b4457424d
commit
12c92a2950
@ -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" })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user