1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 20:52:42 +01:00

Make member.premium_since ISO8601 timestamp

This commit is contained in:
minhducsun2002 2022-03-20 10:56:25 +07:00 committed by Erkin Alp Güney
parent e8355db1f4
commit f1caebe98d

View File

@ -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,