diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-28 16:08:33 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-28 16:08:33 +1000 |
commit | 4ce5ed5ad31a57ab9a816622de47a99b9841dc65 (patch) | |
tree | 129204c7a1b6deabd1917f188f5f93fd31c7d129 /src/util/entities/Invite.ts | |
parent | Generate IDs for entities by default (diff) | |
download | server-4ce5ed5ad31a57ab9a816622de47a99b9841dc65.tar.xz |
Use PrimaryIdColumn instead of PrimaryColumn in Invite and Category
Diffstat (limited to '')
-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() |