We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 966f6eb commit e463f14Copy full SHA for e463f14
1 file changed
lambdas/api-handler/src/handlers/letter-status-update.ts
@@ -23,6 +23,9 @@ export default function createLetterStatusUpdateHandler(
23
updateLetterCommand.id,
24
);
25
letter.status = updateLetterCommand.status;
26
+ if (letter.status === "REJECTED") {
27
+ throw new Error("error");
28
+ }
29
letter.reasonCode = updateLetterCommand.reasonCode;
30
letter.reasonText = updateLetterCommand.reasonText;
31
0 commit comments