summary refs log tree commit diff
path: root/util/src
diff options
context:
space:
mode:
author1itt1eB0y <Kid@5mallk1d.studio>2022-04-09 22:43:38 +0800
committerErkin Alp Güney <erkinalp9035@gmail.com>2022-04-09 21:18:33 +0300
commitf30c3223b3a1696a83f68d13178888de90b0242c (patch)
treed806ab282294492654dfbd686166eee1f0d433e2 /util/src
parentResolves #715 (diff)
downloadserver-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.ts2
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",
 	})