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
@@ -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").
|
||||
|
||||
Reference in new issue
Block a user