always also adhere to userid cooldown

This commit is contained in:
HF 2020-07-18 02:27:29 +02:00
parent dee2a70c78
commit 1872b603b9

View File

@ -61,7 +61,7 @@ class User {
async getWait(canvasId: number): Promise<?number> {
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(
`cd:${canvasId}:id:${this.id}`,
);