mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
fix(store): fix StoreIsUpdating() to properly set the state EE-6227 (#10486)
This commit is contained in:
parent
35448c7f48
commit
b346fd7f39
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue