Call upsert variables in any case
This commit is contained in:
1 parent
5a67d0cc4f
commit
d56d6613bb
6 files changed
+9
-8
No files matched your search
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user