Skip to content

Commit

Permalink
Update get-bootstrap-template-vars.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
sofisl authored Jul 27, 2023
1 parent 3690fa8 commit f5fdaa3
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,11 @@ export async function compileVars(

export function getServiceName(serviceConfig: ServiceConfig) {
let serviceName = '';
for (const api of serviceConfig?.apis) {
if (api.name.endsWith('Service')) {
serviceName = api.name.split('.')[api.name.split('.').length - 1];
if (serviceConfig?.apis) {
for (const api of serviceConfig.apis) {
if (api.name.endsWith('Service')) {
serviceName = api.name.split('.')[api.name.split('.').length - 1];
}
}
}

Expand Down

0 comments on commit f5fdaa3

Please sign in to comment.