Skip to content

Commit

Permalink
fix: use transaction when update event
Browse files Browse the repository at this point in the history
  • Loading branch information
fibonacci998 committed Aug 30, 2023
1 parent 23f5da6 commit 9ff448f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/job/reassign_msg_index_to_event.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default class JobReAssignMsgIndexToEvent extends BullableService {
throw new Error('order attribute is wrong');
} else {
eventPatches.push(
knex.raw(
trx.raw(
'UPDATE EVENT SET tx_msg_index = :tx_msg_index WHERE id = :id',
{
tx_msg_index: rawEvents[index].msg_index ?? null,
Expand Down

0 comments on commit 9ff448f

Please sign in to comment.