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

+1
View File
@@ -146,6 +146,7 @@ func (r Variable) UpsertLinks(ctx context.Context, configId string, links []enti
requests := [][]any{
db.Request(deleteQuery, args...),
}
for _, variable := range links {
query, args, err := squirrel.Insert(Table("config_has_variable")).
Columns("config_id", "variable_name").