Update apps/api/src/scraper/scrapeURL/engines/wikipedia/index.ts

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
Nicolas
2026-03-12 12:42:37 -07:00
committed by GitHub
parent af1efbb798
commit 4927e218d0

View File

@@ -90,7 +90,9 @@ async function getAccessToken(
function clearCachedToken(logger: Meta["logger"]): void {
try {
getRedisConnection().del(REDIS_TOKEN_KEY).catch(() => {});
getRedisConnection().del(REDIS_TOKEN_KEY).catch((error) => {
logger.warn("Failed to clear Wikipedia token from Redis", { error });
});
} catch {
logger.warn("Failed to clear Wikipedia token from Redis");
}