Skip to content

Commit

Permalink
Fix #70 Add DLQ rebumitter tool
Browse files Browse the repository at this point in the history
  • Loading branch information
regevbr committed Nov 21, 2019
1 parent 2143e09 commit e948bd7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/resubmitter/resubmitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ const iteration = (context: IterationContext): Promise<void> => {
return message.del();
})
.catch((err) => {
message.changeVisibility(context.releaseTimeoutSeconds);
return Promise.reject(err);
return message.changeVisibility(context.releaseTimeoutSeconds)
.then(() => {
return Promise.reject(err);
});
});
});
});
Expand Down

0 comments on commit e948bd7

Please sign in to comment.