Skip to content
Snippets Groups Projects
Commit 732d23e0 authored by ko_oler's avatar ko_oler
Browse files

правки по ПР

parent 523f86c2
No related branches found
No related tags found
No related merge requests found
...@@ -225,7 +225,7 @@ func (s *Setup) UninstallCollections(ctx context.Context) error { ...@@ -225,7 +225,7 @@ func (s *Setup) UninstallCollections(ctx context.Context) error {
} }
func (s *Setup) UninstallCollection(ctx context.Context, c CollectionConfig) error { func (s *Setup) UninstallCollection(ctx context.Context, c CollectionConfig) error {
if ok, err := c.DeleteFn(s, c.collection); ok && err != nil { if ok, err := c.DeleteFn(s, c.collection); ok && err == nil {
if err = s.content.Collections.Delete(ctx, s.SpaceID, s.EnvironmentID, c.collection.ID); err != nil && !strings.Contains(err.Error(), collections.ErrNotFound.Error()) { if err = s.content.Collections.Delete(ctx, s.SpaceID, s.EnvironmentID, c.collection.ID); err != nil && !strings.Contains(err.Error(), collections.ErrNotFound.Error()) {
return err return err
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment