Skip to content

Commit

Permalink
im stupid
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7d8 committed Dec 5, 2024
1 parent 8dd6bea commit 07ac035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crontabs/update-prices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { eq } from "drizzle-orm"

let isRunning = false, blockRunning = false
export default new Crontab()
.cron(env.LOG_LEVEL === 'debug' ? '*/3 * * * * *' : '*/6 * * * *')
.cron(env.LOG_LEVEL === 'debug' ? '*/3 * * * * *' : '0 */6 * * *')
.listen(async(ctx) => {
if (isRunning || blockRunning || !ctx.env.UPDATE_PRICES) return
isRunning = true
Expand Down

0 comments on commit 07ac035

Please sign in to comment.