Fix #670
This commit is contained in:
parent
d17583286a
commit
e0d9dd0f9c
|
@ -37,7 +37,7 @@ proc hasExpired(account: GuestAccount): bool =
|
||||||
let
|
let
|
||||||
created = snowflakeToEpoch(account.id)
|
created = snowflakeToEpoch(account.id)
|
||||||
now = epochTime().int64
|
now = epochTime().int64
|
||||||
daysOld = int(now - created) div (24 * 60 * 60)
|
daysOld = int(now - created) div dayInSeconds
|
||||||
return daysOld > 30
|
return daysOld > 30
|
||||||
|
|
||||||
proc getAccountPoolHealth*(): JsonNode =
|
proc getAccountPoolHealth*(): JsonNode =
|
||||||
|
@ -45,7 +45,7 @@ proc getAccountPoolHealth*(): JsonNode =
|
||||||
|
|
||||||
var
|
var
|
||||||
totalReqs = 0
|
totalReqs = 0
|
||||||
limited: PackedSet[BiggestInt]
|
limited: PackedSet[int64]
|
||||||
reqsPerApi: Table[string, int]
|
reqsPerApi: Table[string, int]
|
||||||
oldest = now.int64
|
oldest = now.int64
|
||||||
newest = 0'i64
|
newest = 0'i64
|
||||||
|
|
|
@ -115,7 +115,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.profile-card-tabs-name {
|
.profile-card-tabs-name {
|
||||||
@include breakable;
|
flex-shrink: 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
.profile-card-avatar {
|
.profile-card-avatar {
|
||||||
|
|
|
@ -36,7 +36,7 @@ type
|
||||||
limitedAt*: int
|
limitedAt*: int
|
||||||
|
|
||||||
GuestAccount* = ref object
|
GuestAccount* = ref object
|
||||||
id*: BiggestInt
|
id*: int64
|
||||||
oauthToken*: string
|
oauthToken*: string
|
||||||
oauthSecret*: string
|
oauthSecret*: string
|
||||||
pending*: int
|
pending*: int
|
||||||
|
|
Loading…
Reference in New Issue