Pass the server's version in trial request payload (#30911)
Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
@@ -48,6 +48,7 @@ func (ch *Channels) RequestTrialLicenseWithExtraFields(requesterID string, trial
|
|||||||
CompanyName: trialRequest.CompanyName,
|
CompanyName: trialRequest.CompanyName,
|
||||||
CompanySize: trialRequest.CompanySize,
|
CompanySize: trialRequest.CompanySize,
|
||||||
CompanyCountry: trialRequest.CompanyCountry,
|
CompanyCountry: trialRequest.CompanyCountry,
|
||||||
|
ServerVersion: model.CurrentVersion,
|
||||||
}
|
}
|
||||||
|
|
||||||
if !sanitizedRequest.IsValid() {
|
if !sanitizedRequest.IsValid() {
|
||||||
|
|||||||
@@ -91,6 +91,7 @@ type TrialLicenseRequest struct {
|
|||||||
CompanyName string `json:"company_name"`
|
CompanyName string `json:"company_name"`
|
||||||
CompanyCountry string `json:"company_country"`
|
CompanyCountry string `json:"company_country"`
|
||||||
CompanySize string `json:"company_size"`
|
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
|
// If any of the below fields are set, this is not a legacy request, and all fields should be validated
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user