Skip to content

Commit

Permalink
Fix bug when adding attachment. Remove deprecated Report_AddComment.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaaron committed Jul 13, 2022
1 parent 7a37c01 commit 49a93eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
2 changes: 1 addition & 1 deletion src/libs/actions/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ function addActions(reportID, text = '', file) {
reportID,
reportComment: reportCommentText,
clientID: lastAction.clientID,
commentClientID: reportCommentAction.clientID,
commentClientID: lodashGet(reportCommentAction, 'clientID', ''),
file,
};

Expand Down
16 changes: 0 additions & 16 deletions src/libs/deprecatedAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,21 +290,6 @@ function RejectTransaction(parameters) {
return Network.post(commandName, parameters);
}

/**
* @param {Object} parameters
* @param {String} parameters.reportComment
* @param {Number} parameters.reportID
* @param {String} parameters.clientID
* @param {File|Object} [parameters.file]
* @returns {Promise}
*/
function Report_AddComment(parameters) {
const commandName = 'Report_AddComment';
requireParameters(['reportComment', 'reportID', 'clientID'],
parameters, commandName);
return Network.post(commandName, parameters);
}

/**
* @param {Object} parameters
* @param {Number} parameters.reportID
Expand Down Expand Up @@ -873,7 +858,6 @@ export {
Plaid_GetLinkToken,
Policy_Employees_Merge,
RejectTransaction,
Report_AddComment,
Report_GetHistory,
Report_EditComment,
ResendValidateCode,
Expand Down

0 comments on commit 49a93eb

Please sign in to comment.