mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-20 03:47:54 +02:00
Fix linter error by specifying field names
This commit is contained in:
parent
7e6221ab24
commit
3dce11e332
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user