Skip to content

Commit

Permalink
Merge pull request #40065 from Expensify/marco-addFullParamApproveMon…
Browse files Browse the repository at this point in the history
…eyRequest

Add 'full' parameter to ApproveMoneyRequestParams
  • Loading branch information
robertjchen authored Apr 11, 2024
2 parents 8ae5491 + 1dce7f5 commit 260a7de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/libs/API/parameters/ApproveMoneyRequestParams.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
type ApproveMoneyRequestParams = {
reportID: string;
approvedReportActionID: string;
full?: boolean;
};

export default ApproveMoneyRequestParams;
1 change: 1 addition & 0 deletions src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4961,6 +4961,7 @@ function approveMoneyRequest(expenseReport: OnyxTypes.Report | EmptyObject, full
const parameters: ApproveMoneyRequestParams = {
reportID: expenseReport.reportID,
approvedReportActionID: optimisticApprovedReportAction.reportActionID,
full,
};

API.write(WRITE_COMMANDS.APPROVE_MONEY_REQUEST, parameters, {optimisticData, successData, failureData});
Expand Down

0 comments on commit 260a7de

Please sign in to comment.