mirror of
https://github.com/mattermost/mattermost.git
synced 2026-10-29 18:53:04 +08:00
Pass the server's version in trial request payload (#30911)
Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
co-authored by
Mattermost Build
parent
a6a4674a21
commit
cf2702f5dd
@@ -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() {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user