Skip to content

Commit 59cae60

Browse files
committed
fix queued tx cancel
1 parent 2a77c4b commit 59cae60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/worker/tasks/migratePostgresTransactionsWorker.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ const handler: Processor<any, void, string> = async (job: Job<string>) => {
9494
message: errorMessage,
9595
});
9696
}
97-
98-
await cancelPostgresTransactions({ pgtx, queueIds: toCancel });
99-
job.log(`Done migrating ${toCancel.length} queued transactions.`);
10097
}
98+
99+
await cancelPostgresTransactions({ pgtx, queueIds: toCancel });
100+
job.log(`Done migrating ${toCancel.length} queued transactions.`);
101101
});
102102
};
103103

0 commit comments

Comments
 (0)