summary refs log tree commit diff
path: root/util
diff options
context:
space:
mode:
authorXenorio <realxenorio@gmail.com>2022-03-08 19:06:58 +0100
committerErkin Alp Güney <erkinalp9035@gmail.com>2022-03-08 22:42:40 +0300
commit08cef8b7529bdbd75d2f598f8c5ae93549cd0373 (patch)
treebee6dcb3dc004e8f452c8bf9cccdc925309f6c1f /util
parentTemporary notes fix (diff)
downloadserver-08cef8b7529bdbd75d2f598f8c5ae93549cd0373.tar.xz
Change premium_since to bigint
Diffstat (limited to 'util')
-rw-r--r--util/src/entities/Member.ts4
1 files changed, 2 insertions, 2 deletions
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,