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 | f30c3223b3a1696a83f68d13178888de90b0242c (patch) | |
tree | d806ab282294492654dfbd686166eee1f0d433e2 /util/src | |
parent | Resolves #715 (diff) | |
download | server-f30c3223b3a1696a83f68d13178888de90b0242c.tar.xz |
bug fix
Fix `QueryFailedError: constraint "FK_05535bc695e9f7ee104616459d3" for relation "messages" already exists`
Diffstat (limited to 'util/src')
-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", }) |