Skip to content

Commit

Permalink
fix: list transactions from the admin-tx view
Browse files Browse the repository at this point in the history
ENT-7999
  • Loading branch information
iloveagent57 committed Nov 20, 2023
1 parent 5cc1b8d commit bd8455b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/data/services/EnterpriseSubsidyApiService.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class SubsidyApiService {
const queryParams = new URLSearchParams({
...snakeCaseObject(options),
});
const url = `${SubsidyApiService.baseUrlV2}/subsidies/${subsidyUuid}/transactions/?${queryParams.toString()}`;
const url = `${SubsidyApiService.baseUrlV2}/subsidies/${subsidyUuid}/admin/transactions/?${queryParams.toString()}`;
return SubsidyApiService.apiClient().get(url);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('EnterpriseSubsidyApiService', () => {
});
test('fetchCustomerTransactions calls the API to fetch transactions by enterprise subsidy', () => {
const mockSubsidyUUID = 'test-subsidy-uuid';
const expectedUrl = `${SubsidyApiService.baseUrlV2}/subsidies/${mockSubsidyUUID}/transactions/?`;
const expectedUrl = `${SubsidyApiService.baseUrlV2}/subsidies/${mockSubsidyUUID}/admin/transactions/?`;
SubsidyApiService.fetchCustomerTransactions(mockSubsidyUUID);
expect(axios.get).toBeCalledWith(expectedUrl);
});
Expand Down

0 comments on commit bd8455b

Please sign in to comment.