Skip to content

Commit

Permalink
Fix the params for SetPolicyAutoReimbursementLimit as they are incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaaron committed Sep 18, 2024
1 parent 054221c commit f527d62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libs/API/parameters/SetPolicyAutoReimbursementLimit.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
type SetPolicyAutoReimbursementLimitParams = {
policyID: string;
autoReimbursement: {limit: number};
limit: number;
};

export default SetPolicyAutoReimbursementLimitParams;
2 changes: 1 addition & 1 deletion src/libs/actions/Policy/Policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4447,7 +4447,7 @@ function setPolicyAutoReimbursementLimit(policyID: string, limit: string) {
];

const parameters: SetPolicyAutoReimbursementLimitParams = {
autoReimbursement: {limit: parsedLimit},
limit: parsedLimit,
policyID,
};

Expand Down

0 comments on commit f527d62

Please sign in to comment.