diff options
author | 1itt1eB0y <Kid@5mallk1d.studio> | 2022-04-09 22:43:38 +0800 |
---|---|---|
committer | Erkin Alp Güney <erkinalp9035@gmail.com> | 2022-04-09 21:18:33 +0300 |
commit | d54fa9b1cb6e5a35b44860565cd9592c22f121de (patch) | |
tree | 9d4e69a6c8f29cfb3f3ffa370c3ec04529d1100b /util/src/entities/Message.ts | |
parent | Resolves #715 (diff) | |
download | server-d54fa9b1cb6e5a35b44860565cd9592c22f121de.tar.xz |
bug fix
Fix `QueryFailedError: constraint "FK_05535bc695e9f7ee104616459d3" for relation "messages" already exists`
Diffstat (limited to '')
-rw-r--r-- | util/src/entities/Message.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/src/entities/Message.ts b/util/src/entities/Message.ts index 04b04747..b32bbd94 100644 --- a/util/src/entities/Message.ts +++ b/util/src/entities/Message.ts @@ -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", }) |