Skip to content

Commit

Permalink
馃悰 fix: no monitorHistoryData in cron
Browse files Browse the repository at this point in the history
  • Loading branch information
yunsii committed Mar 22, 2024
1 parent f1342c1 commit 033c57a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/worker/_helpers/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@ export async function cleanDataV1(value: DataV1, allMonitors: Monitor[]) {
return value
}

const { monitorHistoryData = {}, ...rest } = value
const { monitorHistoryData, ...rest } = value

if (!monitorHistoryData) {
return value
}

const historyDates = getHistoryDates()

return {
Expand Down

0 comments on commit 033c57a

Please sign in to comment.