Update send-reimbursement-notification.ts
This commit is contained in:
parent
aac2837b78
commit
f75e1c6de1
1 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,7 @@ export const POST: APIRoute = async ({ request }) => {
|
||||||
comment,
|
comment,
|
||||||
commentByUserId,
|
commentByUserId,
|
||||||
isPrivate,
|
isPrivate,
|
||||||
|
declinedReason,
|
||||||
additionalContext,
|
additionalContext,
|
||||||
authData // Change to authData containing token and model
|
authData // Change to authData containing token and model
|
||||||
} = await request.json();
|
} = await request.json();
|
||||||
|
@ -135,7 +136,7 @@ export const POST: APIRoute = async ({ request }) => {
|
||||||
newStatus,
|
newStatus,
|
||||||
previousStatus,
|
previousStatus,
|
||||||
changedByUserId,
|
changedByUserId,
|
||||||
declinedReason: additionalContext?.declinedReason
|
declinedReason: declinedReason || additionalContext?.declinedReason
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue