Call upsert variables in any case

This commit is contained in:
komissarovyv committed 2025-07-08 11:19:04 +03:00
1 parent 5a67d0cc4f
commit d56d6613bb
6 files changed
+9 -8

No files matched your search

-4
View File
@@ -255,10 +255,6 @@ func (s Service) ExtractVariables(ctx context.Context, configId string, input []
}
func (s Service) SaveVariableLinks(ctx context.Context, configId string, links []entity.ConfigHasVariable) error {
if len(links) == 0 {
return nil
}
err := s.repo.UpsertLinks(ctx, configId, links)
if err != nil {
return errors.WithMessage(err, "upsert links")