From 30b16bef840a3b47caf02e4eafb6b2bbaf751097 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Tue, 13 Jun 2023 19:39:49 +0200 Subject: [PATCH] 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. --- src/lib/server-impl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/server-impl.ts b/src/lib/server-impl.ts index 9f88d4b562..fabbff41b8 100644 --- a/src/lib/server-impl.ts +++ b/src/lib/server-impl.ts @@ -39,7 +39,7 @@ async function createApp( ): Promise { // 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);