mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-25 07:32:09 +00:00
Merge pull request #448 from Mr2u/master
Route #10 Prune and prune count
This commit is contained in:
@@ -84,6 +84,9 @@ export class Member extends BaseClassWithoutId {
|
||||
@Column({ type: "simple-json" })
|
||||
settings: UserGuildSettings;
|
||||
|
||||
@Column({ nullable: true })
|
||||
last_message_id?: string;
|
||||
|
||||
// TODO: update
|
||||
// @Column({ type: "simple-json" })
|
||||
// read_state: ReadState;
|
||||
|
||||
@@ -84,7 +84,7 @@ export class Snowflake {
|
||||
}
|
||||
|
||||
static generate() {
|
||||
var time = BigInt(Date.now() - Snowflake.EPOCH) << 22n;
|
||||
var time = BigInt(Date.now() - Snowflake.EPOCH) << BigInt(22);
|
||||
var worker = Snowflake.workerId << 17n;
|
||||
var process = Snowflake.processId << 12n;
|
||||
var increment = Snowflake.INCREMENT++;
|
||||
|
||||
Reference in New Issue
Block a user