mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-23 00:22:19 +01:00
chore: set unleash version to be either the enterprise version or OSS (#3974)
## About the changes Unleash version should be the one best representing its runtime. In this regard, enterpriseVersion trumps unleash-server version. This version is the one that's sent as part of our metrics.
This commit is contained in:
parent
ec8a03bcf4
commit
30b16bef84
@ -39,7 +39,7 @@ async function createApp(
|
|||||||
): Promise<IUnleash> {
|
): Promise<IUnleash> {
|
||||||
// Database dependencies (stateful)
|
// Database dependencies (stateful)
|
||||||
const logger = config.getLogger('server-impl.js');
|
const logger = config.getLogger('server-impl.js');
|
||||||
const serverVersion = version;
|
const serverVersion = config.enterpriseVersion ?? version;
|
||||||
const db = createDb(config);
|
const db = createDb(config);
|
||||||
const stores = createStores(config, db);
|
const stores = createStores(config, db);
|
||||||
const services = createServices(stores, config, db);
|
const services = createServices(stores, config, db);
|
||||||
|
Loading…
Reference in New Issue
Block a user