changed user.premium_since to also load from the database.

This commit is contained in:
Iratu
2022-02-18 19:50:11 +03:00
committed by Erkin Alp Güney
parent 3352f3b75a
commit 46f77f8e38
4 changed files with 12 additions and 1 deletions
+5
View File
@@ -16,6 +16,7 @@ export enum PublicUserEnum {
banner,
bio,
bot,
premium_since,
}
export type PublicUserKeys = keyof typeof PublicUserEnum;
@@ -110,6 +111,9 @@ export class User extends BaseClass {
@Column()
created_at: Date; // registration date
@Column({ nullable: true })
premium_since: Date; // premium date
@Column({ select: false })
verified: boolean; // if the user is offically verified
@@ -246,6 +250,7 @@ export class User extends BaseClass {
id: Snowflake.generate(),
bot: false,
system: false,
premium_since: new Date(),
desktop: false,
mobile: false,
premium: true,