summary refs log tree commit diff
path: root/util/src
diff options
context:
space:
mode:
authorThe Arcane Brony <myrainbowdash949@gmail.com>2021-10-10 18:12:51 +0200
committerThe Arcane Brony <myrainbowdash949@gmail.com>2021-10-10 18:12:51 +0200
commitd38953439ccce8c7c1af87bdc038b45dc5ede4a3 (patch)
tree942f32e03569020ab4d4f4788bfa0e131f875fcc /util/src
parentFix duplicate key (diff)
downloadserver-d38953439ccce8c7c1af87bdc038b45dc5ede4a3.tar.xz
forgot to fix primary columns on invites
Diffstat (limited to 'util/src')
-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()