Skip to content

Commit

Permalink
🐛 fix: upsertRemoteMonitors
Browse files Browse the repository at this point in the history
  • Loading branch information
yunsii committed Sep 7, 2024
1 parent 7896301 commit fef35a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/worker/cron/remote-monitors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import getRemoteMonitors from '#src/helpers/monitors'
export async function handleRemoteMonitors(env: Env) {
try {
const result = await getRemoteMonitors()
upsertRemoteMonitors(env, result)
await upsertRemoteMonitors(env, result)
} catch (err) {
console.error(err)
}
Expand Down
2 changes: 1 addition & 1 deletion wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ crons = [
# https://crontab.guru/#*/2_*_*_*_*
# Check monitors
"*/2 * * * *",
# https://crontab.guru/#*/2_*_*_*_*
# https://crontab.guru/#*/10_*_*_*_*
# Update remote csv monitors
"*/10 * * * *",
]

0 comments on commit fef35a8

Please sign in to comment.