From d7fa45771d8acf1d0127754a5e813b45e62e353b Mon Sep 17 00:00:00 2001 From: The Arcane Brony Date: Sun, 10 Oct 2021 20:34:45 +0200 Subject: Change enums to numbers --- util/src/entities/Channel.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util/src/entities/Channel.ts') diff --git a/util/src/entities/Channel.ts b/util/src/entities/Channel.ts index 51d8b026..e10bd8ed 100644 --- a/util/src/entities/Channel.ts +++ b/util/src/entities/Channel.ts @@ -39,8 +39,8 @@ export class Channel extends BaseClass { @Column({ type: "text", nullable: true }) icon?: string | null; - @Column({ type: "simple-enum", enum: ChannelType }) - type: ChannelType; + @Column() + type: number; @OneToMany(() => Recipient, (recipient: Recipient) => recipient.channel, { cascade: true, -- cgit 1.5.1