From f31317851811cd172bf5690671c86a1b514f0d0c Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Tue, 31 Aug 2021 17:54:09 +0200 Subject: :sparkles: delete _ids from entities --- util/src/entities/Role.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util/src/entities/Role.ts') diff --git a/util/src/entities/Role.ts b/util/src/entities/Role.ts index be8c731d..33c8d272 100644 --- a/util/src/entities/Role.ts +++ b/util/src/entities/Role.ts @@ -5,11 +5,12 @@ import { Guild } from "./Guild"; @Entity("roles") export class Role extends BaseClass { + @Column({ nullable: true }) @RelationId((role: Role) => role.guild) guild_id: string; @JoinColumn({ name: "guild_id" }) - @ManyToOne(() => Guild, (guild: Guild) => guild.id) + @ManyToOne(() => Guild) guild: Guild; @Column() -- cgit 1.5.1