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

Function toPriority

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

Source from the content-addressed store, hash-verified

2245 const allAccounts = Array.isArray(data.accounts) ? data.accounts : [];
2246 const bindFailCountMap = await fetchBindFailStats(allAccounts.map((acc) => Number(acc?.id || 0)));
2247 const toPriority = (acc) => {
2248 const num = Number(acc?.priority || 50);
2249 return Number.isFinite(num) ? num : 50;
2250 };
2251 const toLastUsedRank = (acc) => {
2252 const ms = Date.parse(String(acc?.last_used_at || ""));
2253 if (Number.isNaN(ms)) return -1;

Callers 1

loadAccountsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected