mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-30 16:05:41 +00:00
Fix attachments not being saved to db
This commit is contained in:
@@ -128,7 +128,7 @@ export class Message extends BaseClass {
|
||||
sticker_items?: Sticker[];
|
||||
|
||||
@JoinColumn({ name: "attachment_ids" })
|
||||
@OneToMany(() => Attachment, (attachment: Attachment) => attachment.message)
|
||||
@OneToMany(() => Attachment, (attachment: Attachment) => attachment.message, { cascade: true })
|
||||
attachments?: Attachment[];
|
||||
|
||||
@Column({ type: "simple-json" })
|
||||
|
||||
Reference in New Issue
Block a user