From 6856ac718f40068fd8caa374bba3ae9d461d7d6a Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Fri, 9 Sep 2022 16:02:25 +0200 Subject: [PATCH] fix --- lib/RedisData/RedisBlacklistStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/RedisData/RedisBlacklistStore.ts b/lib/RedisData/RedisBlacklistStore.ts index 7274877..f91fafb 100644 --- a/lib/RedisData/RedisBlacklistStore.ts +++ b/lib/RedisData/RedisBlacklistStore.ts @@ -20,7 +20,7 @@ export class RedisBlacklistStore extends Redis { } await this.redis.setex ( `blacklist_${key}`, - (valid_until.getTime () - Date.now ()) / 1000, + Math.floor ((valid_until.getTime () - Date.now ()) / 1000), 1 ); log ('saved key');