From 41a53ab07401b206527e107f2312e1d9db78d8f1 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Wed, 25 Sep 2024 15:16:34 +0800 Subject: [PATCH] feat(twitter): increase auth retry time --- lib/routes/twitter/api/web-api/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/twitter/api/web-api/utils.ts b/lib/routes/twitter/api/web-api/utils.ts index 035363d7ed8a6d..5c915cd57962dc 100644 --- a/lib/routes/twitter/api/web-api/utils.ts +++ b/lib/routes/twitter/api/web-api/utils.ts @@ -56,7 +56,7 @@ const getAuth = async (retry: number) => { }; export const twitterGot = async (url, params) => { - const auth = await getAuth(10); + const auth = await getAuth(30); if (!auth) { throw new ConfigNotFoundError('No valid Twitter token found');