summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--util/src/entities/Invite.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/src/entities/Invite.ts b/util/src/entities/Invite.ts
index d6b8f2f8..b3e00957 100644
--- a/util/src/entities/Invite.ts
+++ b/util/src/entities/Invite.ts
@@ -1,6 +1,6 @@
-import { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm";
+import { Column, Entity, JoinColumn, ManyToOne, RelationId, PrimaryColumn } from "typeorm";
 import { Member } from "./Member";
-import { BaseClass, PrimaryIdColumn } from "./BaseClass";
+import { BaseClassWithoutId } from "./BaseClass";
 import { Channel } from "./Channel";
 import { Guild } from "./Guild";
 import { User } from "./User";
@@ -8,8 +8,8 @@ import { User } from "./User";
 export const PublicInviteRelation = ["inviter", "guild", "channel"];
 
 @Entity("invites")
-export class Invite extends BaseClass {
-	@PrimaryIdColumn()
+export class Invite extends BaseClassWithoutId {
+	@PrimaryColumn()
 	code: string;
 
 	@Column()