mirror of
https://github.com/ssyyhhrr/stewardle.git
synced 2025-11-13 12:33:45 -05:00
DayJS Fix
This commit is contained in:
2
app.js
2
app.js
@@ -88,7 +88,7 @@ schedule.scheduleJob("0 0 * * *", async () => {
|
||||
})
|
||||
let rawStatsFile = fs.readFileSync(statsPath)
|
||||
let statsFile = JSON.parse(rawStatsFile)
|
||||
let date = dayjs.format("YYYY-MM-DD")
|
||||
let date = dayjs().format("YYYY-MM-DD")
|
||||
statsFile[date] = stats
|
||||
let newStatsFile = JSON.stringify(statsFile)
|
||||
fs.writeFileSync(statsPath, newStatsFile)
|
||||
|
||||
Reference in New Issue
Block a user