Skip to content
Snippets Groups Projects
Commit 286034c6 authored by ko_oler's avatar ko_oler
Browse files

исправлена логика функции InstallCollection

parent 04871ea2
No related branches found
No related tags found
No related merge requests found
...@@ -146,11 +146,13 @@ func (s *Setup) InstallCollection(ctx context.Context, c CollectionConfig) (setS ...@@ -146,11 +146,13 @@ func (s *Setup) InstallCollection(ctx context.Context, c CollectionConfig) (setS
} }
} else { } else {
var upd bool var upd bool
if c.metadata != nil {
collection.Schema.Metadata = c.metadata
err = s.checkSchemaMetadata(collection, exist) err = s.checkSchemaMetadata(collection, exist)
if err != nil { if err != nil {
return false, err return false, err
} }
}
collection, upd, setSchema = c.UpdateFn(s, exist, c.collection) collection, upd, setSchema = c.UpdateFn(s, exist, c.collection)
if upd { if upd {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment