Skip to content

Commit

Permalink
run cleanup after timer starts
Browse files Browse the repository at this point in the history
  • Loading branch information
Bossett committed Sep 11, 2024
1 parent aa8b97f commit 6ad6a57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/labelEmitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ async function cleanUpRedundantEvents() {

export default async function labelEmitter() {
do {
await cleanUpRedundantEvents()
const promArray: Promise<any>[] = [wait(waitTime)]
await cleanUpRedundantEvents()
const events = await db.query.label_actions.findMany({
where: lte(
schema.label_actions.unixtimescheduled,
Expand Down

0 comments on commit 6ad6a57

Please sign in to comment.