mirror of https://github.com/portainer/portainer
fix(store): fix StoreIsUpdating() to properly set the state EE-6227 (#10486)
parent
35448c7f48
commit
b346fd7f39
|
@ -73,6 +73,10 @@ func (service *Service) IsUpdating() (bool, error) {
|
|||
|
||||
// StoreIsUpdating store the database updating status.
|
||||
func (service *Service) StoreIsUpdating(isUpdating bool) error {
|
||||
if isUpdating {
|
||||
return service.connection.UpdateObject(BucketName, []byte(updatingKey), isUpdating)
|
||||
}
|
||||
|
||||
return service.connection.DeleteObject(BucketName, []byte(updatingKey))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue