diff options
author | minhducsun2002 <32769878+minhducsun2002@users.noreply.github.com> | 2022-03-20 10:56:25 +0700 |
---|---|---|
committer | Erkin Alp Güney <erkinalp9035@gmail.com> | 2022-03-28 17:22:41 +0300 |
commit | 093ae5558007031253b5dadb5a5be96dd265683d (patch) | |
tree | 74bcac29fab03e21cc6f598cb6195573beb99682 | |
parent | Make comments more accurate to use-case (diff) | |
download | server-093ae5558007031253b5dadb5a5be96dd265683d.tar.xz |
Make member.premium_since ISO8601 timestamp
-rw-r--r-- | util/src/entities/Member.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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, |