mirror of
https://github.com/Routstr/routstrd.git
synced 2026-08-09 11:54:38 +00:00
allowing xcashu mode right now and removed logs.
This commit is contained in:
+10
-7
@@ -423,7 +423,10 @@ program
|
||||
|
||||
// Calculate totals from entries
|
||||
const totalEntries = entries.length;
|
||||
const totalSatsCost = entries.reduce((sum, e) => sum + (e.satsCost || 0), 0);
|
||||
const totalSatsCost = entries.reduce(
|
||||
(sum, e) => sum + (e.satsCost || 0),
|
||||
0,
|
||||
);
|
||||
const recentSatsCost = totalSatsCost; // For now, recent = total since we don't have time window
|
||||
|
||||
console.log(`Usage entries: showing ${entries.length} of ${totalEntries}`);
|
||||
@@ -883,12 +886,12 @@ program
|
||||
|
||||
const selectedMode = modes[selectedIndex];
|
||||
|
||||
if (selectedMode === "xcashu") {
|
||||
console.log(
|
||||
"\nxcashu mode is coming soon! Only lazyrefund/apikeys is available at this time.",
|
||||
);
|
||||
return;
|
||||
}
|
||||
// if (selectedMode === "xcashu") {
|
||||
// console.log(
|
||||
// "\nxcashu mode is coming soon! Only lazyrefund/apikeys is available at this time.",
|
||||
// );
|
||||
// return;
|
||||
// }
|
||||
|
||||
if (selectedMode === currentMode) {
|
||||
console.log(`Mode is already set to '${selectedMode}'. No changes made.`);
|
||||
|
||||
@@ -150,7 +150,7 @@ export function createCocodClient(
|
||||
|
||||
const response = await fetchImpl(`http://localhost${path}`, requestInit);
|
||||
const rawText = await response.text();
|
||||
logger.log(`[fetchJson] ${init.method || "GET"} ${path} status=${response.status} body=${rawText}`);
|
||||
// logger.log(`[fetchJson] ${init.method || "GET"} ${path} status=${response.status} body=${rawText}`);
|
||||
const data = JSON.parse(rawText) as CommandResponse<T>;
|
||||
const errorMessage =
|
||||
typeof data.error === "string" ? data.error.trim() : "";
|
||||
|
||||
Reference in New Issue
Block a user