From 8100ff76be5821641ea6b7e54406a24f857d8587 Mon Sep 17 00:00:00 2001 From: Liam <67254223+RealFascinated@users.noreply.github.com> Date: Mon, 24 Oct 2022 19:50:24 +0100 Subject: [PATCH] Change how long steam ids stay valid before becoming invalid --- src/helpers/validateSteamId.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/validateSteamId.js b/src/helpers/validateSteamId.js index eba5d7e..ebe2314 100644 --- a/src/helpers/validateSteamId.js +++ b/src/helpers/validateSteamId.js @@ -32,7 +32,7 @@ export async function isValidSteamId(steamId) { } } - await setValue(`${KEY}${steamId}`, valid); + await setValue(`${KEY}${steamId}`, valid, valid ? 86400 * 7 : 86400); // Expire in a week if is valid console.log( `[Cache]: Cached Steam ID for id ${steamId} in ${Date.now() - before}ms` );