always also adhere to userid cooldown
This commit is contained in:
parent
dee2a70c78
commit
1872b603b9
|
@ -61,7 +61,7 @@ class User {
|
||||||
|
|
||||||
async getWait(canvasId: number): Promise<?number> {
|
async getWait(canvasId: number): Promise<?number> {
|
||||||
let ttl: number = await redis.pttlAsync(`cd:${canvasId}:ip:${this.ipSub}`);
|
let ttl: number = await redis.pttlAsync(`cd:${canvasId}:ip:${this.ipSub}`);
|
||||||
if (this.id != null && ttl < 0) {
|
if (this.id != null) {
|
||||||
const ttlid: number = await redis.pttlAsync(
|
const ttlid: number = await redis.pttlAsync(
|
||||||
`cd:${canvasId}:id:${this.id}`,
|
`cd:${canvasId}:id:${this.id}`,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user