mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-06 10:52:31 +01:00
bug fix
Fix `QueryFailedError: constraint "FK_05535bc695e9f7ee104616459d3" for relation "messages" already exists`
This commit is contained in:
parent
467f2d6ed9
commit
d54fa9b1cb
@ -90,7 +90,7 @@ export class Message extends BaseClass {
|
||||
@RelationId((message: Message) => message.member)
|
||||
member_id: string;
|
||||
|
||||
@JoinColumn({ name: "author_id", referencedColumnName: "id" })
|
||||
@JoinColumn({ name: "member_id", referencedColumnName: "id" })
|
||||
@ManyToOne(() => User, {
|
||||
onDelete: "CASCADE",
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user