summary refs log tree commit diff
path: root/util/src/entities/Message.ts
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
commitd54fa9b1cb6e5a35b44860565cd9592c22f121de (patch)
tree9d4e69a6c8f29cfb3f3ffa370c3ec04529d1100b /util/src/entities/Message.ts
parentResolves #715 (diff)
downloadserver-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.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",
 	})