api/config: apply friendly name in a map
filter doesn't allow changing the value
This commit is contained in:
parent
c71ed59660
commit
805e5d42c0
1 changed files with 3 additions and 1 deletions
|
@ -7,8 +7,10 @@ const version = await getVersion();
|
||||||
const disabledServices = process.env.DISABLED_SERVICES?.split(',') || [];
|
const disabledServices = process.env.DISABLED_SERVICES?.split(',') || [];
|
||||||
const enabledServices = new Set(Object.keys(services).filter(e => {
|
const enabledServices = new Set(Object.keys(services).filter(e => {
|
||||||
if (!disabledServices.includes(e)) {
|
if (!disabledServices.includes(e)) {
|
||||||
return friendlyServiceName(e);
|
return e;
|
||||||
}
|
}
|
||||||
|
}).map(e => {
|
||||||
|
return friendlyServiceName(e);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const env = {
|
const env = {
|
||||||
|
|
Loading…
Reference in a new issue