fix history

This commit is contained in:
Patryk Koreń
2026-01-29 17:43:43 +01:00
parent cbf39d2bae
commit d60cd75786
2 changed files with 39 additions and 1 deletions

View File

@@ -27,5 +27,7 @@ export async function add_to_history(history: HistoryObject) {
data.push(history)
fs.writeFileSync(file_path, JSON.stringify(data, null, 2));
fs.writeFileSync(file_path, JSON.stringify(data, (key, value) => {
return typeof value === "bigint" ? value.toString() : value
}, 2));
}