From cf2702f5dd617ba882f623977f67ab810ce64387 Mon Sep 17 00:00:00 2001 From: Nick Misasi Date: Mon, 12 May 2025 13:40:45 -0400 Subject: [PATCH] Pass the server's version in trial request payload (#30911) Co-authored-by: Mattermost Build --- server/channels/app/license.go | 1 + server/public/model/license.go | 1 + 2 files changed, 2 insertions(+) diff --git a/server/channels/app/license.go b/server/channels/app/license.go index aee10644ec..e9ab7f1956 100644 --- a/server/channels/app/license.go +++ b/server/channels/app/license.go @@ -48,6 +48,7 @@ func (ch *Channels) RequestTrialLicenseWithExtraFields(requesterID string, trial CompanyName: trialRequest.CompanyName, CompanySize: trialRequest.CompanySize, CompanyCountry: trialRequest.CompanyCountry, + ServerVersion: model.CurrentVersion, } if !sanitizedRequest.IsValid() { diff --git a/server/public/model/license.go b/server/public/model/license.go index f46dea93db..5bfc430950 100644 --- a/server/public/model/license.go +++ b/server/public/model/license.go @@ -91,6 +91,7 @@ type TrialLicenseRequest struct { CompanyName string `json:"company_name"` CompanyCountry string `json:"company_country"` CompanySize string `json:"company_size"` + ServerVersion string `json:"server_version"` } // If any of the below fields are set, this is not a legacy request, and all fields should be validated