Skip to content

Commit e948bd7

Browse files
committed
Fix #70 Add DLQ rebumitter tool
1 parent 2143e09 commit e948bd7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/resubmitter/resubmitter.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ const iteration = (context: IterationContext): Promise<void> => {
6565
return message.del();
6666
})
6767
.catch((err) => {
68-
message.changeVisibility(context.releaseTimeoutSeconds);
69-
return Promise.reject(err);
68+
return message.changeVisibility(context.releaseTimeoutSeconds)
69+
.then(() => {
70+
return Promise.reject(err);
71+
});
7072
});
7173
});
7274
});

0 commit comments

Comments
 (0)