From 08cef8b7529bdbd75d2f598f8c5ae93549cd0373 Mon Sep 17 00:00:00 2001 From: Xenorio Date: Tue, 8 Mar 2022 19:06:58 +0100 Subject: Change premium_since to bigint --- util/src/entities/Member.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util') diff --git a/util/src/entities/Member.ts b/util/src/entities/Member.ts index b7406881..a246b891 100644 --- a/util/src/entities/Member.ts +++ b/util/src/entities/Member.ts @@ -85,7 +85,7 @@ export class Member extends BaseClassWithoutId { @Column() joined_at: Date; - @Column({ nullable: true }) + @Column({ type: "bigint", nullable: true }) premium_since?: number; @Column() @@ -245,7 +245,7 @@ export class Member extends BaseClassWithoutId { nick: undefined, roles: [guild_id], // @everyone role joined_at: new Date(), - premium_since: new Date(), + premium_since: (new Date()).getTime(), deaf: false, mute: false, pending: false, -- cgit 1.4.1