fix history
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user