's'
This commit is contained in:
@@ -34,9 +34,10 @@ async function checkVipFromPayjsapi(
|
||||
userId
|
||||
)}`;
|
||||
console.log("[check-by-user] payjsapi request user_id=%s url=%s", userId, url);
|
||||
const checkTimeout = Number(process.env.PAYJSAPI_CHECK_TIMEOUT) || 15000;
|
||||
const res = await fetch(
|
||||
url,
|
||||
{ cache: "no-store", signal: AbortSignal.timeout(5000) }
|
||||
{ cache: "no-store", signal: AbortSignal.timeout(checkTimeout) }
|
||||
);
|
||||
if (!res.ok) {
|
||||
console.log(
|
||||
|
||||
Reference in New Issue
Block a user