Skip to content

Commit

Permalink
chore: set unleash version to be either the enterprise version or OSS (
Browse files Browse the repository at this point in the history
…#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.
  • Loading branch information
gastonfournier committed Jun 13, 2023
1 parent ec8a03b commit 30b16be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/server-impl.ts
Expand Up @@ -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);
Expand Down

0 comments on commit 30b16be

Please sign in to comment.