diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-10 18:28:52 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-10 18:28:52 +0200 |
commit | 781e1bf6d001fb929248ad85205058de5bd7362e (patch) | |
tree | 9f1d3d3f25caee8e179eb9b9c5eead0710956dd8 /util | |
parent | added vanity db migration (diff) | |
parent | forgot to fix primary columns on invites (diff) | |
download | server-781e1bf6d001fb929248ad85205058de5bd7362e.tar.xz |
Merge branch 'remove-vanity-url' of https://github.com/thearcanebrony/fosscord-server into pr/TheArcaneBrony/434
Diffstat (limited to 'util')
-rw-r--r-- | util/src/entities/Invite.ts | 8 |
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() |