mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-06 10:52:31 +01:00
Merge pull request #555 from unknownPerson115/patch-1
Fixed potential guild message SQL constraints
This commit is contained in:
commit
efd6b4bfbe
@ -84,8 +84,10 @@ export class Message extends BaseClass {
|
||||
@RelationId((message: Message) => message.member)
|
||||
member_id: string;
|
||||
|
||||
@JoinColumn({ name: "member_id" })
|
||||
@ManyToOne(() => Member)
|
||||
@JoinColumn({ name: "author_id", referencedColumnName: "id" })
|
||||
@ManyToOne(() => User, {
|
||||
onDelete: "CASCADE",
|
||||
})
|
||||
member?: Member;
|
||||
|
||||
@Column({ nullable: true })
|
||||
|
Loading…
Reference in New Issue
Block a user