diff options
author | Erkin Alp Güney <erkinalp9035@gmail.com> | 2022-04-04 18:22:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-04 18:22:37 +0300 |
commit | 99a5030530267b24ba923cdd75ee83df2e7f7c30 (patch) | |
tree | d649fadd086996a22b87c7fc7533ac3a252b98b5 /util | |
parent | Add our custom channel types (diff) | |
download | server-99a5030530267b24ba923cdd75ee83df2e7f7c30.tar.xz |
Revert "Make member.premium_since ISO8601 timestamp" (#710)
This reverts commit f1caebe98dfcdeab3c0237f31d77c54e32a12471.
Diffstat (limited to 'util')
-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 928a25d7..a246b891 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() - premium_since?: Date; + @Column({ type: "bigint", nullable: true }) + premium_since?: number; @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(), + premium_since: (new Date()).getTime(), deaf: false, mute: false, pending: false, |