Fix linter error by specifying field names

This commit is contained in:
David Dworken 2023-10-11 18:01:46 -07:00
parent 7e6221ab24
commit 3dce11e332
No known key found for this signature in database

View File

@ -53,7 +53,7 @@ func (s *Server) apiSubmitHandler(w http.ResponseWriter, r *http.Request) {
deviceId := getOptionalQueryParam(r, "source_device_id", s.isTestEnvironment)
if deviceId != "" {
hv, err := shared.ParseVersionString(version)
if err != nil || hv.GreaterThan(shared.ParsedVersion{0, 221}) {
if err != nil || hv.GreaterThan(shared.ParsedVersion{MinorVersion: 0, MajorVersion: 221}) {
// Note that if we fail to parse the version string, we do return dump and deletion requests. This is necessary
// since tests run with v0.Unknown which obviously fails to parse.
dumpRequests, err := s.db.DumpRequestForUserAndDevice(r.Context(), userId, deviceId)