summary refs log tree commit diff
path: root/util
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
commitd5fcad37389544d418c1894b796fdf66f3955e87 (patch)
tree8483826028ce81c88e62e620713b2a848192405c /util
parentFix duplicate key (diff)
downloadserver-d5fcad37389544d418c1894b796fdf66f3955e87.tar.xz
forgot to fix primary columns on invites
Diffstat (limited to 'util')
-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()