diff --git a/internal/op/const.go b/internal/op/const.go index a465735f..0b4498c8 100644 --- a/internal/op/const.go +++ b/internal/op/const.go @@ -2,5 +2,6 @@ package op const ( WORK = "work" + DISABLED = "disabled" RootName = "root" ) diff --git a/internal/op/storage.go b/internal/op/storage.go index 75c755ee..353d2c93 100644 --- a/internal/op/storage.go +++ b/internal/op/storage.go @@ -142,6 +142,7 @@ func DisableStorage(ctx context.Context, id uint) error { } // delete the storage in the memory storage.Disabled = true + storage.SetStatus(DISABLED) err = db.UpdateStorage(storage) if err != nil { return errors.WithMessage(err, "failed update storage in db")