summary refs log tree commit diff
path: root/util
diff options
context:
space:
mode:
authorAlTech98 <altech123159@gmail.com>2021-09-03 13:27:15 +0200
committerAlTech98 <altech123159@gmail.com>2021-09-03 13:27:15 +0200
commitf99ed31730300c4243d3479cf7522049d39df275 (patch)
tree20f23d54ce71e92dd6e34375e1467ba74fdb665c /util
parentfix #310 (diff)
downloadserver-f99ed31730300c4243d3479cf7522049d39df275.tar.xz
VoiceState fix for db update
Diffstat (limited to 'util')
-rw-r--r--util/src/entities/VoiceState.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/src/entities/VoiceState.ts b/util/src/entities/VoiceState.ts
index d7a032c7..bb1deb3d 100644
--- a/util/src/entities/VoiceState.ts
+++ b/util/src/entities/VoiceState.ts
@@ -32,7 +32,7 @@ export class VoiceState extends BaseClass {
 	@ManyToOne(() => User)
 	user: User;
 
-	@JoinColumn({ name: "user_id" })
+	@JoinColumn([{ name: "user_id", referencedColumnName: "id" },{ name: "guild_id", referencedColumnName: "guild_id" }])
 	@ManyToOne(() => Member)
 	member: Member;