Skip to content

Commit

Permalink
changes for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetlath committed Jan 15, 2024
1 parent e85c339 commit ef206cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,7 @@ const CONST = {
UPDATE_MAX_EXPENSE_AMOUNT: 'POLICYCHANGELOG_UPDATE_MAX_EXPENSE_AMOUNT',
UPDATE_MAX_EXPENSE_AMOUNT_NO_RECEIPT: 'POLICYCHANGELOG_UPDATE_MAX_EXPENSE_AMOUNT_NO_RECEIPT',
UPDATE_NAME: 'POLICYCHANGELOG_UPDATE_NAME',
UPDATE_DESCRIPTION: 'POLICYCHANGELOG_UPDATE_DESCRIPTION',
UPDATE_OWNERSHIP: 'POLICYCHANGELOG_UPDATE_OWNERSHIP',
UPDATE_REIMBURSEMENT_CHOICE: 'POLICYCHANGELOG_UPDATE_REIMBURSEMENT_CHOICE',
UPDATE_REPORT_FIELD: 'POLICYCHANGELOG_UPDATE_REPORT_FIELD',
Expand Down
5 changes: 5 additions & 0 deletions src/libs/actions/Policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,11 @@ function updateGeneralSettings(policyID, name, currency) {
failureData,
},
);

API.write(

Check failure on line 833 in src/libs/actions/Policy.js

View workflow job for this annotation

GitHub Actions / lint

Do not call API multiple times in the same method. The API response should return all the necessary data in a single request, and API calls should not be chained together
'UpdateWorkspaceDescription',
{policyID, description: name},
);
}

/**
Expand Down

0 comments on commit ef206cc

Please sign in to comment.