Skip to content

Commit

Permalink
feat: check conflict not only with name but also configid
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Nov 5, 2024
1 parent d0c7c06 commit 5671746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/pkg/admin/config/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func sync(ctx context.Context) error {
}
}

return db.BulkUpsert(ctx, "feeds", []string{"name", "definition", "config_id"}, upsertRows, []string{"name"}, []string{"definition", "config_id"})
return db.BulkUpsert(ctx, "feeds", []string{"name", "definition", "config_id"}, upsertRows, []string{"name", "config_id"}, []string{"definition", "config_id"})
}

func Insert(c *fiber.Ctx) error {
Expand Down

0 comments on commit 5671746

Please sign in to comment.