Skip to content

Commit

Permalink
little renaming 2
Browse files Browse the repository at this point in the history
  • Loading branch information
rlindner81 committed Jan 31, 2025
1 parent 2159302 commit 6b70cb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/submodules/hanaManagement.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,16 @@ const _getQuery = (filters) =>
}, [])
.join(" and ");

const _getServicePlanId = async (sm_url, token, serviceName, servicePlanName) => {
const _getServicePlanId = async (sm_url, token, serviceOfferingName, servicePlanName) => {
const responseOfferings = await request({
url: sm_url,
pathname: "/v1/service_offerings",
query: { fieldQuery: _getQuery({ name: serviceName }) },
query: { fieldQuery: _getQuery({ name: serviceOfferingName }) },
auth: { token },
});
const responseOfferingsData = (await responseOfferings.json()) || {};
const serviceOfferingId = responseOfferingsData.items?.[0]?.id;
assert(serviceOfferingId, `could not find service offering with name ${serviceName}`);
assert(serviceOfferingId, `could not find service offering with name ${serviceOfferingName}`);
const responsePlans = await request({
url: sm_url,
pathname: "/v1/service_plans",
Expand Down

0 comments on commit 6b70cb0

Please sign in to comment.