From 5671746ff9bc8865789d3d5fe96e1bfd8303443e Mon Sep 17 00:00:00 2001 From: nick Date: Tue, 5 Nov 2024 12:12:14 +0900 Subject: [PATCH] feat: check conflict not only with name but also configid --- node/pkg/admin/config/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/pkg/admin/config/controller.go b/node/pkg/admin/config/controller.go index 82cf1ddc0..f52b0eeeb 100644 --- a/node/pkg/admin/config/controller.go +++ b/node/pkg/admin/config/controller.go @@ -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 {