Skip to content
Snippets Groups Projects
Commit 523f86c2 authored by ko_oler's avatar ko_oler
Browse files

правки по ПР

parent 35cc5b22
Branches
Tags
No related merge requests found
......@@ -225,8 +225,8 @@ func (s *Setup) UninstallCollections(ctx context.Context) error {
}
func (s *Setup) UninstallCollection(ctx context.Context, c CollectionConfig) error {
if ok, _ := c.DeleteFn(s, c.collection); ok {
if err := s.content.Collections.Delete(ctx, s.SpaceID, s.EnvironmentID, c.collection.ID); err != nil && !strings.Contains(err.Error(), collections.ErrNotFound.Error()) {
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()) {
return err
}
s.removeItems(c.collection.ID) // после удаления коллекции нет смысла удалять ее элементы
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment