1
0
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:
Gastón Fournier 2023-06-13 19:39:49 +02:00 committed by GitHub
parent ec8a03bcf4
commit 30b16bef84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ async function createApp(
): Promise<IUnleash> {
// Database dependencies (stateful)
const logger = config.getLogger('server-impl.js');
const serverVersion = version;
const serverVersion = config.enterpriseVersion ?? version;
const db = createDb(config);
const stores = createStores(config, db);
const services = createServices(stores, config, db);