fix: disallow update if dates are same (#10890)

fixes #10889
master
Harshavardhana 4 years ago committed by GitHub
parent a3017c724e
commit 0bcb1b679d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cmd/admin-handlers.go

@ -126,7 +126,7 @@ func (a adminAPIHandlers) ServerUpdateHandler(w http.ResponseWriter, r *http.Req
return return
} }
if lrTime.Sub(crTime) < 0 { if lrTime.Sub(crTime) <= 0 {
updateStatus := madmin.ServerUpdateStatus{ updateStatus := madmin.ServerUpdateStatus{
CurrentVersion: Version, CurrentVersion: Version,
UpdatedVersion: Version, UpdatedVersion: Version,

Loading…
Cancel
Save