From 093ae5558007031253b5dadb5a5be96dd265683d Mon Sep 17 00:00:00 2001 From: minhducsun2002 <32769878+minhducsun2002@users.noreply.github.com> Date: Sun, 20 Mar 2022 10:56:25 +0700 Subject: Make member.premium_since ISO8601 timestamp --- util/src/entities/Member.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util/src') diff --git a/util/src/entities/Member.ts b/util/src/entities/Member.ts index a246b891..928a25d7 100644 --- a/util/src/entities/Member.ts +++ b/util/src/entities/Member.ts @@ -85,8 +85,8 @@ export class Member extends BaseClassWithoutId { @Column() joined_at: Date; - @Column({ type: "bigint", nullable: true }) - premium_since?: number; + @Column() + premium_since?: Date; @Column() deaf: boolean; @@ -245,7 +245,7 @@ export class Member extends BaseClassWithoutId { nick: undefined, roles: [guild_id], // @everyone role joined_at: new Date(), - premium_since: (new Date()).getTime(), + premium_since: new Date(), deaf: false, mute: false, pending: false, -- cgit 1.4.1