diff options
Diffstat (limited to 'src/util/entities/Invite.ts')
-rw-r--r-- | src/util/entities/Invite.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util/entities/Invite.ts b/src/util/entities/Invite.ts index 90dec92a..ad4fd6db 100644 --- a/src/util/entities/Invite.ts +++ b/src/util/entities/Invite.ts @@ -4,10 +4,9 @@ import { JoinColumn, ManyToOne, RelationId, - PrimaryColumn, } from "typeorm"; import { Member } from "./Member"; -import { BaseClassWithoutId } from "./BaseClass"; +import { BaseClassWithoutId, PrimaryIdColumn } from "./BaseClass"; import { Channel } from "./Channel"; import { Guild } from "./Guild"; import { User } from "./User"; @@ -16,7 +15,7 @@ export const PublicInviteRelation = ["inviter", "guild", "channel"]; @Entity("invites") export class Invite extends BaseClassWithoutId { - @PrimaryColumn() + @PrimaryIdColumn() code: string; @Column() |