mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-29 11:06:10 +00:00
api/config: apply friendly name in a map
filter doesn't allow changing the value
This commit is contained in:
parent
c71ed59660
commit
805e5d42c0
|
@ -7,8 +7,10 @@ const version = await getVersion();
|
|||
const disabledServices = process.env.DISABLED_SERVICES?.split(',') || [];
|
||||
const enabledServices = new Set(Object.keys(services).filter(e => {
|
||||
if (!disabledServices.includes(e)) {
|
||||
return friendlyServiceName(e);
|
||||
return e;
|
||||
}
|
||||
}).map(e => {
|
||||
return friendlyServiceName(e);
|
||||
}));
|
||||
|
||||
const env = {
|
||||
|
|
Loading…
Reference in a new issue