summary refs log tree commit diff
diff options
context:
space:
mode:
authorErkin Alp Güney <erkinalp9035@gmail.com>2022-04-04 18:22:37 +0300
committerGitHub <noreply@github.com>2022-04-04 18:22:37 +0300
commitfac61d7f6a52145580c167c8f3394820604db512 (patch)
tree3e348d0b0756959f8a3d6973feed4bdbb84193e3
parentAdd our custom channel types (diff)
downloadserver-fac61d7f6a52145580c167c8f3394820604db512.tar.xz
Revert "Make member.premium_since ISO8601 timestamp" (#710)
This reverts commit 093ae5558007031253b5dadb5a5be96dd265683d.
-rw-r--r--util/src/entities/Member.ts6
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,