Skip to content
Snippets Groups Projects
Commit 17922b5b authored by ko_oler's avatar ko_oler
Browse files

правки по ПР

parent 732d23e0
No related branches found
No related tags found
No related merge requests found
......@@ -225,7 +225,11 @@ func (s *Setup) UninstallCollections(ctx context.Context) error {
}
func (s *Setup) UninstallCollection(ctx context.Context, c CollectionConfig) error {
if ok, err := c.DeleteFn(s, c.collection); ok && err == nil {
ok, err := c.DeleteFn(s, c.collection)
if err != nil {
return err
}
if ok {
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
}
......
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