This commit is contained in:
2024-12-16 07:13:00 +08:00
parent 5964d0f956
commit df1ad53ba1

View File

@@ -47,9 +47,9 @@ const 存档 = async (message = '正在存档...') => {
正在存档 = true
console.log(message)
await fs.promises.writeFile(`./data/${当前日期}.json`, JSON.stringify({
文章: Object.fromEntries(文章),
截图: Object.fromEntries(截图),
收藏: Object.fromEntries(收藏),
文章: Object.fromEntries(文章.浏览数.),
截图: Object.fromEntries(截图.浏览数.),
收藏: Object.fromEntries(收藏.浏览数.),
}, null, 2))
正在存档 = false
}