MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / toFailRank

Function toFailRank

static/js/payment.js:2256–2265  ·  view source on GitHub ↗
(acc)

Source from the content-addressed store, hash-verified

2254 return ms;
2255 };
2256 const toFailRank = (acc) => {
2257 const accountId = Number(acc?.id || 0);
2258 if (Number.isFinite(accountId) && accountId > 0) {
2259 const count = bindFailCountMap.get(accountId);
2260 if (Number.isFinite(count)) {
2261 return count;
2262 }
2263 }
2264 return String(acc?.status || "").trim().toLowerCase() === "failed" ? 1 : 0;
2265 };
2266
2267 paymentAccounts = allAccounts
2268 .filter((acc) => {

Callers 1

loadAccountsFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected